 statplots(deprecated)/xscale - Maple Help

Home : Support : Online Help : statplots(deprecated)/xscale

xscale, yscale, zscale

Scale the x, y, or z coordinates of a 2-D or 3-D plot Calling Sequence stats[statplots, xscale](amount, plot) statplots[xscale](amount, plot) xscale(amount, plot) Parameters

 plot - plot structure amount - real number Description

 • 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. Examples

Important: The stats package has been deprecated. Use the superseding package Statistics instead.

scale a plot by a factor of 3

 > $\mathrm{with}\left(\mathrm{stats}\left[\mathrm{statplots}\right]\right):$
 > $p≔\mathrm{plot}\left('{x}^{2}','x'=-3..3\right):$
 > $\mathrm{xscale}\left(3,p\right)$ plot the scaled and original plot together

 > $\mathrm{plots}\left[\mathrm{display}\right]\left(\left\{p,\mathrm{xscale}\left(3,p\right)\right\}\right)$ a 3-D object shifted and scaled

 > $p≔\mathrm{plots}\left[\mathrm{display}\right]\left(\mathrm{plottools}\left[\mathrm{icosahedron}\right]\left(\right)\right):$
 > $\mathrm{plots}\left[\mathrm{display}\right]\left(\left\{p,\mathrm{xshift}\left(5,\mathrm{zscale}\left(30,p\right)\right)\right\}\right)$ 