/usr/share/doc/stilts/sun256/plot2d-examples.html 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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="sun-style.css">
<title>Examples</title>
</head>
<body>
<hr>
<a href="plot3d.html">Next</a> <a href="plot2d-usage.html">Previous</a> <a href="plot2d.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="plot3d.html">plot3d: Old-style 3D Scatter Plot</a><br>
<b>Up: </b><a href="plot2d.html">plot2d: Old-style 2D Scatter Plot</a><br>
<b>Previous: </b><a href="plot2d-usage.html">Usage</a><br>
<hr>
<h3><a name="plot2d-examples">B.12.2 Examples</a></h3>
<p>Here are some examples of <code>plot2d</code> in use:
<dl>
<dt><strong><pre>
stilts plot2d in=cat.xml xdata=RMAG-BMAG ydata=BMAG
</pre></strong></dt>
<dd>Plots a colour-magnitude diagram.
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>The generated plot is <a href="xyplot.png">here</a>.
</p>
</dd>
<dt><strong><pre>
stilts plot2d in=6dfgs_mini.xml xdata=RMAG-BMAG ydata=BMAG
subset1=SGFLAG==1 name1=galaxy colour1=blue shape1=open_circle
subset2=SGFLAG==2 name2=star colour2=e010f0 shape2=x size2=3
xlo=-1 xhi=4.5 ylo=10 yhi=20 xpix=500 ypix=250
out=xyplot2.png
</pre></strong></dt>
<dd>Plots a colour-magnitude diagram with multiple
subsets.
The subsets are labelled
"<code>1</code>" and "<code>2</code>"
with separate sets of parameters applying to each.
The selections for the sets are given by the
<code>subset*</code> parameters;
set 1 is those rows with the SGFLAG column equal to 1 and
set 2 is those rows with the SGFLAG column equal to 2.
The boundaries of the plot in data coordinates
are set explicitly rather than being determined from
the data (this is faster)
and the plot size in pixels is also set explicitly
rather than taking the default values.
Output is to a PNG file.
<p>The generated plot is <a href="xyplot2.png">here</a>.
</p>
</dd>
<dt><strong><pre>
stilts plot2d in1=iras_psc.fits cmd1='addskycoords fk5 galactic RA DEC GLON GLAT'
xdata1=GLON ydata1=GLAT
auxdata1=FNU_100 auxlog=true auxflip=true size1=0 transparency1=3
in2=messier.xml cmd2='addskycoords fk5 galactic RA DEC GLON GLAT'
xdata2=GLON ydata2=GLAT
txtlabel2=RADIUS>16?("M"+ID):"" cmd2='addcol SIZE sqrt(RADIUS/2)'
xerror2=SIZE yerror2=SIZE
subset2a=true hide2a=true colour2a=black errstyle2a=ellipse
subset2b=true hide2b=true colour2b=black errstyle2b=filled_ellipse
transparency2b=6
xlabel='Galactic Longitude' ylabel='Galactic Latitude' title='The Sky'
legend=false grid=false fontsize=12 fontstyle=bold-italic
xlo=0 xhi=360 ylo=-90 yhi=+90 xpix=600 ypix=300
out=skyplot.png
</pre></strong></dt>
<dd>You can do quite complicated things.
<p>The generated plot is <a href="skyplot.png">here</a>.
</p>
</dd>
</dl>
</p>
<hr><a href="plot3d.html">Next</a> <a href="plot2d-usage.html">Previous</a> <a href="plot2d.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="plot3d.html">plot3d: Old-style 3D Scatter Plot</a><br>
<b>Up: </b><a href="plot2d.html">plot2d: Old-style 2D Scatter Plot</a><br>
<b>Previous: </b><a href="plot2d-usage.html">Usage</a><br>
<hr><i>STILTS - Starlink Tables Infrastructure Library Tool Set<br>Starlink User Note256<br>STILTS web page:
<a href="http://www.starlink.ac.uk/stilts/">http://www.starlink.ac.uk/stilts/</a><br>Author email:
<a href="mailto:m.b.taylor@bristol.ac.uk">m.b.taylor@bristol.ac.uk</a><br>Mailing list:
<a href="mailto:topcat-user@jiscmail.ac.uk">topcat-user@jiscmail.ac.uk</a><br></i></body>
</html>
|