This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Plotting Surfaces Warren Weckesser Plotting the graph of a function of two variables. Let's plot the graph of f(x,y) = x^2-y^2. To do this, we'll use the plot3d command. In its most basic form, the plot3d command takes three arguments. The first is the expression that defines the function to be plotted, and the next two are the ranges of the independent variables. > plot3d(x^2-y^2,x=-1..1,y=-1..1); Note: To see a different view, use the mouse to click and drag in the plot. To change some of the plot options, right-click on the plot, and select an option. For example, try using the mouse to add axes to the plot. Just like the plot command, the plot3d command can be given many optional arguments. Look for plot3d in the Maple Help, or enter the command ?plot3d to learn more. Here is the same command as above, with some options added directly to the command. > plot3d(x^2-y^2,x=-1..1,y=-1..1,axes=boxed,grid=[64,64],style=patch contour); 1 With the "style=patchcontour" option, the lines drawn in the surface are contours lines instead of the...
View Full Document
- Spring '08