You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The format of the output data is intented to give as extensive information as possible about the contour line, in a format that can be generalized in the future, if/when something like a [`Geometry.jl` package](https://groups.google.com/forum/#!topic/julia-dev/vZpZ8NBX_z8) is created. Each contour level is represented by an instance of
55
55
56
56
```julia
57
-
type ContourLevel
58
-
level::Float64
59
-
lines::Vector{Curve2}
57
+
type ContourLevel{T}
58
+
level::T
59
+
lines::Vector{Curve2{T}}
60
60
end
61
61
```
62
62
@@ -73,8 +73,8 @@ julia> plot(xs, ys) # using your favorite plotting tool
73
73
74
74
`Contour.jl` makes sure that the coordinates are ordered correctly, and contours that close on themselves are given cyclically, so that e.g. `xs[1]==xs[end]` - in other words, plotting the contour does not require you to add the first point at the end manually to close the curve.
75
75
76
-
We can also find the contours at multiple levels using `contours`,
77
-
which returns an array of `ContourLevel` types.
76
+
We can also find the contours at multiple levels using `contours`,
77
+
which returns an array of `ContourLevel` types.
78
78
79
79
```julia
80
80
julia> h = [4.0, 5.0, 6.0];
@@ -92,7 +92,7 @@ specify the number of levels we want.
0 commit comments