plottools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Packages : Plot Tools : plottools/scale

plottools

  

scale

  

scale PLOT and PLOT3D data structures

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

scale(p, a, b, pt_2d)

scale(q, a, b, c, pt_3d)

Parameters

p

-

PLOT data structure

q

-

PLOT3D data structure

a, b, c

-

real numbers; scale factors in the x, y and z directions

pt_2d

-

(optional) list of two real numbers specifying the center of the scale (for the 2-D case)

pt_3d

-

(optional) list of three real numbers specifying the center of the scale (for the 3-D case)

Description

• 

The scale command takes a plot structure and produces a new plot structure scaled by the specified values with respect to the center (pt_2d for the 2-D case or pt_3d for the 3-D case). If pt_2d or pt_3d is not specified, the default center is at the origin.

• 

The inputs p or q must be two- or three-dimensional plot data structures or objects, while a, b, and c are real numbers representing the scale factors in the x, y and z directions.

• 

The result of a call to scale is a PLOT or PLOT3D data structure or object containing information to render the plot. You can assign the data structure to a variable, save it in a file, then read it back in for redisplay.  For more information about plot data structures, see plot/structure or plot3d/structure.

• 

Several commands in the plottools package can transform plots. For a list, see the plottools help page.  The plots[changecoords] and plots[display] commands can also be used to transform plots.

Examples

withplottools:

withplots:

pplotsinx,x,x=0..2π:

sscalep,2,3:

displayp,s

qplot3dsinx+y,x=1..2π,y=0..π:

sscaleq,3,1,12:

displayq,s,axes=frame,lightmodel=light2,orientation=100,65,shading=zgrayscale,style=patchnogrid

ccircle0,0,2:

displayc,scalec,13,13,color=blue,scaling=constrained

See Also

plot

plot/structure

plot3d

plot3d/structure

plots[changecoords]

plots[display]

plottools[circle]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam