Examples of Contour Plots (Level Curves)

Dr. K. G. TeBeest

> with( plots ) :

Warning, the name changecoords has been redefined


Plot the paraboloid z = x^2+y^2

> f := x^2 + y^2 ;

f := x^2+y^2

> plot3d( f, x = -4 .. 4, y = -4 .. 4, style = patchcontour, axes = framed ) ;

[Maple Plot]

Plot the contour plot (level curves) of the same paraboloid. Let's plot the level curves z = 0, z = 1, z = 2, z = 3, z = 4, z = 5, z = 6

> contourplot( f, x = -4 .. 4, y = -4 .. 4, contours = [0,1,2,3,4,5,6], scaling = constrained, color = blue ) ;

[Maple Plot]


Plot the hyperbolic paraboloid z = y^2-x^2

> f := y^2 - x^2 ;

f := y^2-x^2

> plot3d( f, x = -4 .. 4, y = -4 .. 4, style = patchcontour, axes = framed ) ;

[Maple Plot]

Plot the contour plot (level curves) of the same hyperbolic paraboloid.

> contourplot( f, x = -4 .. 4, y = -4 .. 4, scaling = constrained ) ;

[Maple Plot]


Plot the function f(x,y) = -x*y*exp(-x^2-y^2)

> f := - x * y * exp(-x^2-y^2) ;

f := -x*y*exp(-x^2-y^2)

> plot3d( f, x = -3 .. 3, y = -3 .. 3, axes = framed, grid = [41,41] ) ;

[Maple Plot]

Plot the contour plot (level curves) of the same surface with the number of contours set to 12.

> contourplot( f, x = -3 .. 3, y = -3 .. 3, scaling = constrained, grid = [51,51], color = blue, contours = 12 ) ;

[Maple Plot]


Plot the function f(x,y) = exp(-(x^2+y^2))*cos(x^2+y^2)

> f := exp( -(x^2+y^2) / 10 ) * cos( x^2+y^2 ) ;

f := exp(-1/10*x^2-1/10*y^2)*cos(x^2+y^2)

> plot3d( f, x = -3 .. 3, y = -3 .. 3, axes = framed, grid = [41,41] ) ;

[Maple Plot]

Plot the contour plot (level curves) of the same surface with the number of contours set to 8.

> contourplot( f, x = -3 .. 3, y = -3 .. 3, scaling = constrained, grid = [51,51], color = blue, contours = 8 ) ;

[Maple Plot]


Dr. K. G. TeBeest
Applied Mathematics
Kettering University