Mathematica 教程

# Parametric Plots

"Basic Plotting" describes how to plot curves in Mathematica in which you give the y coordinate of each point as a function of the x coordinate. You can also use Mathematica to make parametric plots. In a parametric plot, you give both the x and y coordinates of each point as a function of a third parameter, say t.
 ParametricPlot[{fx,fy},{t,tmin,tmax}] make a parametric plot ParametricPlot[{{fx,fy},{gx,gy},...},{t,tmin,tmax}] plot several parametric curves together

Functions for generating parametric plots.

Here is the curve made by taking the x coordinate of each point to be Sin[t] and the y coordinate to be Sin[2t].
 Out[1]=
 ParametricPlot3D[{fx,fy,fz},{t,tmin,tmax}] make a parametric plot of a three-dimensional curve ParametricPlot3D[{fx,fy,fz},{t,tmin,tmax},{u,umin,umax}] make a parametric plot of a three-dimensional surface ParametricPlot3D[{{fx,fy,fz},{gx,gy,gz},...},...] plot several objects together

Three-dimensional parametric plots.

ParametricPlot3D[{fx, fy, fz}, {t, tmin, tmax}] is the direct analog in three dimensions of ParametricPlot[{fx, fy}, {t, tmin, tmax}] in two dimensions. In both cases, Mathematica effectively generates a sequence of points by varying the parameter t, then forms a curve by joining these points. With ParametricPlot, the curve is in two dimensions; with ParametricPlot3D, it is in three dimensions.
This makes a parametric plot of a helical curve. Varying t produces circular motion in the x-y plane, and linear motion in the z direction.
 Out[2]=
ParametricPlot3D[{fx, fy, fz}, {t, tmin, tmax}, {u, umin, umax}] creates a surface, rather than a curve. The surface is formed from a collection of quadrilaterals. The corners of the quadrilaterals have coordinates corresponding to the values of the fi when t and u take on values in a regular grid.
Here the x and y coordinates for the quadrilaterals are given simply by t and u. The result is a surface plot of the kind that can be produced by Plot3D.
 Out[3]=
This shows the same surface as before, but with the y coordinates distorted by a quadratic transformation.
 Out[4]=
This produces a helicoid surface by taking the helical curve shown above, and at each section of the curve drawing a quadrilateral.
 Out[5]=
In general, it is possible to construct many complicated surfaces using ParametricPlot3D. In each case, you can think of the surfaces as being formed by "distorting" or "rolling up" the t-u coordinate grid in a certain way.
This produces a cylinder. Varying the t parameter yields a circle in the x-y plane, while varying u moves the circles in the z direction.
 Out[6]=
This produces a torus. Varying u yields a circle, while varying t rotates the circle around the z axis to form the torus.
 Out[7]=
This produces a sphere.
 Out[8]=
You should realize that when you draw surfaces with ParametricPlot3D, the exact choice of parametrization is often crucial. You should be careful, for example, to avoid parametrizations in which all or part of your surface is covered more than once. Such multiple coverings often lead to discontinuities in the mesh drawn on the surface, and may make ParametricPlot3D take much longer to render the surface.