Geom.contour

Geom.contour

Draw contours of a 2D function or a matrix.

Aesthetics

Arguments

Examples

plot(z=(x,y) -> x*exp(-(x-round(Int, x))^2-y^2),
     x=linspace(-8,8,150), y=linspace(-2,2,150), Geom.contour)
x -10 -5 0 5 10 -5 5 -10 10 0 Color -2 -1 0 1 2 y
volcano = Matrix{Float64}(dataset("datasets", "volcano"))
plot(z=volcano, Geom.contour)
0 25 50 75 100 100 200 150 Color 0 20 40 60 80
plot(z=volcano, Geom.contour(levels=[110.0, 150.0, 180.0, 190.0]))
0 25 50 75 100 120 180 130 170 110 140 150 190 160 Color 0 20 40 60 80
plot(z=volcano, x=collect(0.0:10:860.0), y=collect(0.0:10:600.0),
     Geom.contour(levels=2))
x 0 200 400 600 800 120 160 170 150 130 140 Color 0 100 200 300 400 500 600 y