Next Previous Up Contents
Next: plothist: Old-style Histogram
Up: plot3d: Old-style 3D Scatter Plot
Previous: Usage

B.15.2 Examples

Here are some examples of plot3d in use:

stilts plot3d in=cat.xml xdata=RMAG ydata=BMAG zdata=VEL zlog=true
Plots a 3-d scatter plot of red magnitude vs. blue magnitude vs. velocity; the velocity is plotted on a logarithmic scale. Since no omode or out value has been specified, the plot is posted directly to the graphics display for inspection. By adding the parameter out=xyplot.eps the plot could be written to an Encapsulated Postscript file instead.

The generated plot is here.

stilts plot3d in=sim1.fits xdata=x ydata=y zdata=z
              cmd='addcol vel "sqrt(velx*velx+vely*vely+velz*velz)"' auxdata=vel auxlog=true
              xpix=500 ypix=400 phi=50 theta=10 out=cube.jpeg
Plots the x, y, z positions of particles from a file containing the result of a simulation run. Here an auxiliary axis is used to colour-code the points according their velocity. This is done by introducing a new vel column to the table using the addcol filter command, so that the vel column can be used as the value for the auxdata parameter. Alternatively, the given expression for the velocity could have been used directly as the value of the auxdata parameter.

Additionally, the phi and theta parameters are given to adjust the orientation of the cube.

The generated plot is here.


Next Previous Up Contents
Next: plothist: Old-style Histogram
Up: plot3d: Old-style 3D Scatter Plot
Previous: Usage

STILTS - Starlink Tables Infrastructure Library Tool Set
Starlink User Note256
STILTS web page: http://www.starlink.ac.uk/stilts/
Author email: m.b.taylor@bristol.ac.uk
Mailing list: topcat-user@jiscmail.ac.uk