plots
tubeplot
three-dimensional tube plotting
Calling Sequence
Parameters
Description
Examples
tubeplot(C, options)
C
-
set of spacecurves
The tubeplot function defines a tube about one or more three-dimensional space curves. A given space curve is a list of three or more components. The initial three components define parametrically the x, y, and z components. Additional components of a given space curve specify various local attributes of the curve.
Remaining components of an individual space curve are interpreted as local options which are specified as equations of the form option = value. These include equations of the form numpoints = n or tubepoints = m with n and m integers. These allow the user to designate the number of points evaluated on the space curve and the number of points on the tube, respectively. The default values used by Maple are numpoints=50 and tubepoints=10. An equation of the form radius = f, where f is some expression, defines the radius of the tube about the given space curve. If no radius is specified, then the default used is radius=1. An equation of the form t=a..b, where a and b evaluate to constants, specifies the range of the parameter of the curve.
Remaining arguments to tubeplot include such specifications as numpoints = n, tubepoints = m, t= a..b, and radius = f. These are to be used in the case where an individual space curve does not have the option specified.
Additional options are the same as those found in spacecurve (and similar to options for plot3d). For example, the option axes= boxed specifies that the tubeplot is to include a boxed axis bounding the plot. See also plot3d/option.
The result of a call to tubeplot is a PLOT3D structure which can be rendered by the plotting device. You can assign a PLOT3D value to a variable, save it in a file, then read it back in for redisplay. See plot3d/structure.
tubeplot may be defined by with(plots) or with(plots,tubeplot). It can also be used by the name plots[tubeplot].
For more examples, including ones demonstrating the use of additional plot options, see examples/knots.
with⁡plots:
tubeplot⁡cos⁡t,sin⁡t,0,t=0..2⁢π,radius=0.5
tubeplot⁡cos⁡t,sin⁡t,0,t=π..2⁢π,radius=0.25⁢t−π
tubeplot⁡3⁢sin⁡t,t,3⁢cos⁡t,t=−3⁢π..4⁢π,radius=1.2+sin⁡t,numpoints=80
tubeplot⁡sin⁡t,t,exp⁡t,t=−1..1,radius=cos⁡t,tubepoints=20
tubeplot⁡−10⁢cos⁡t−2⁢cos⁡5⁢t+15⁢sin⁡2⁢t,−15⁢cos⁡2⁢t+10⁢sin⁡t−2⁢sin⁡5⁢t,10⁢cos⁡3⁢t,t=0..2⁢π,radius=3⁢cos⁡t⁢π3
Multiple tubeplots are also allowed.
tubeplot⁡0,sin⁡t−1,cos⁡t,cos⁡t,sin⁡t,0,t=0..2⁢π,radius=14
tubeplot⁡0,sin⁡t−1,cos⁡t,cos⁡t,sin⁡t,0,t=0..2⁢π,radius=110⁢t
You can specify color option as a two argument procedure:
F≔x,y↦sin⁡x:
tubeplot⁡0,sin⁡t−1,cos⁡t,cos⁡t,sin⁡t,0,t=0..2⁢π,radius=14,color=F
The command to create the plot from the Plotting Guide is
tubeplot⁡0,cos⁡t−1,sin⁡t,t=0..π,numpoints=45,radius=0.25,cos⁡t,sin⁡t,0,t=π..2⁢π,numpoints=15,radius=0.25⁢t−π
See Also
examples/knots
plot3d/option
plot3d/structure
plots[spacecurve]
Download Help Document