xscale, yscale, zscale
Scale the x, y, or z coordinates of a 2-D or 3-D plot
Calling Sequence
Parameters
Description
Examples
stats[statplots, xscale](amount, plot)
statplots[xscale](amount, plot)
xscale(amount, plot)
plot
-
plot structure
amount
real number
Important: The stats package has been deprecated. Use the superseding package Statistics instead.
The function xscale of the subpackage stats[statplots] changes the scale of the x coordinate of a 2-D or 3-D plot structure by multiplying every x coordinate element by the value in amount. Similarly, yscale and zscale change the scale of the y and z coordinates respectively.
This function can be used with other plots in order to modify the display output. It can also be used in conjunction with plots[display] to show various plots on the same axes.
The command with(stats[statplots]) allows the use of the abbreviated form of this command.
scale a plot by a factor of 3
with⁡statsstatplots:
p≔plot⁡x2,x=−3..3:
xscale⁡3,p
plot the scaled and original plot together
plotsdisplay⁡p,xscale⁡3,p
a 3-D object shifted and scaled
p≔plotsdisplay⁡plottoolsicosahedron⁡:
plotsdisplay⁡p,xshift⁡5,zscale⁡30,p
See Also
alias
plot[color]
plots
plots[display]
Statistics
statplots(deprecated)[boxplot]
statplots(deprecated)[histogram]
statplots(deprecated)[scatterplot]
statplots(deprecated)[xshift]
statplots(deprecated)[xyexchange]
stats(deprecated)[statplots]
with
Download Help Document