next up previous 222
Next: Pairing two catalogues
Up: CURSA Catalogue and Table Manipulation Applications
Previous: Worked example


Plotting with other packages

CURSA contains only limited facilities for plotting: there are the applications for generating finding charts described in Section [*] and both xcatview (see Section [*]) and catview (see Section [*]) can plot simple scatter-plots and histograms. For more sophisticated plots it is necessary to export the columns to be plotted into specialised plotting packages. Both xcatview and catview can generate output files suitable for input to plotting packages. Usually such files should consist of just the table of values to be plotted, with no extraneous annotation or formatting. The example in Section [*] and Figure [*] shows how to configure catview to produce such an output file.

Several plotting packages are available on Starlink. One such is PONGO, which is documented in SUN/137[17]. Figures [*] and [*] show two example PONGO scripts for producing plots. Figure [*] produces a scatter-plot of redshift against $V$ magnitude from a table where the $V$ magnitude is read from the fifth column and the redshift from the fourth. Figure [*] produces an all-sky plot using a PONGO Aitoff projection. Here the celestial coordinates are read from the second and third columns in the table.

Figure: Procedure to produce a PONGO scatter-plot
\begin{figure}\par
\begin{verbatim}proc scatter
PONGO
BEGPLOT xwindows
READ...
...ift' 'Redshift against V'
ENDPLOT
endproc\end{verbatim}
\par\par
\end{figure}

Figure: Procedure to produce a PONGO Aitoff all-sky plot
\begin{figure}\par
\begin{verbatim}proc aitoff
PONGO
BEGPLOT xwindowsRESE...
...7VSTAND
CHANGE RESETENDPLOT
endproc\end{verbatim}
\par\par
\end{figure}

You can use these examples as a basis for your own scripts. They are simple text files prepared with an editor; either type them in ab ovo or paste them from the Latex source for this document, and modify as appropriate.

To run a PONGO script enter the following commands.

icl
start ICL; the prompt will change to `ICL>'.

load scatter
load the PONGO procedure (here assumed to have file name scatter.icl; substitute the name of your file as appropriate).

scatter
run the procedure. Again substitute the name of your file as appropriate.

exit
leave ICL.

Alternatively you can use PONGO interactively to assemble the required plot. Many more options are available than are described here. They are fully documented in SUN/137.



next up previous 222
Next: Pairing two catalogues
Up: CURSA Catalogue and Table Manipulation Applications
Previous: Worked example

CURSA Catalogue and Table Manipulation Applications
Starlink User Note 190
A.C. Davenhall
4th November 2001
E-mail:ussc@star.rl.ac.uk

Copyright © 2001 Council for the Central Laboratory of the Research Councils