For now, maybe something like:
```
cs = contours(X,Y,Z,h)
for c in cs
lvl,lines = c.level, c.lines
for line in lines
line_color = string((lvl - minimum(h))/maximum(h)); # Shades of gray
v = reinterpret(Float64, line.vertices, (2, length(line.vertices)))
plot(v[1,:][:], v[2,:][:], "-", color=line_color)
end
end
```
We're still discussing the API for extracting the vertex information into
plot-friendly data. Until then, the built-in `contour` function from
PyPlot is probably the easiest way to go.
On Monday, July 7, 2014 1:02:55 PM UTC-7, Andrei Berceanu wrote:
>
> So what would be the easiest way of plotting the contours obtained with
> contour(x, y, Z, h) using PyPlot?