/usr/share/doc/stilts/examples/plot3d-examples.xml is in stilts-doc 3.1.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | <dt><verbatim>
stilts plot3d in=cat.xml xdata=RMAG ydata=BMAG zdata=VEL zlog=true
</verbatim></dt>
<dd><p>Plots a 3-d scatter plot of red magnitude vs.
blue magnitude vs. velocity; the velocity is plotted
on a logarithmic scale.
Since no <code>omode</code> or <code>out</code> value
has been specified, the plot is posted directly
to the graphics display for inspection.
By adding the parameter
<code>out=xyplot.eps</code>
the plot could be written to an
Encapsulated Postscript file instead.
</p>
<p>The generated plot is <webref url='xyzplot.png'>here</webref>.</p>
</dd>
<dt><verbatim>
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
</verbatim></dt>
<dd><p>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 <code>vel</code>
column to the table using the
<ref id='addcol'><code>addcol</code></ref>
filter command, so that the <code>vel</code> column
can be used as the value for the <code>auxdata</code>
parameter.
Alternatively, the given expression for the velocity
could have been used directly as the value of the
<code>auxdata</code> parameter.
</p>
<p>Additionally, the <code>phi</code> and
<code>theta</code> parameters are given
to adjust the orientation of the cube.
</p>
<p>The generated plot is <webref url='cube.jpeg'>here</webref>.</p>
</dd>
|