next up previous 241
Next: Example procedures
Up: Creating Complex Plots
Previous: A simple ICL procedure

A simple CL procedure

A simple CL procedure that reproduces the tutorial example looks like:

procedure cltest (datafile)
string datafile
begin
   begplot xw
   readf (data=datafile, xcol=1, ycol=3, all=yes, mode=h )
   dlimits
   boxframe
   points 3
   label ("X axis", "Y axis", "PLOT TITLE")
   endplot
end
If you enter this text into a file say called cltest.cl and use the following commands from CL.
po> task cltest = cltest.cl
po> cltest pongoexamples$tutorial.dat
The data from the tutorial example will be plotted as before. One immediate advantange of this method is that we can now plot data from columns 1 and 3 of any file.

Another way in which you can create CL scripts is to use the mkscript command.


next up previous 241
Next: Example procedures
Up: Creating Complex Plots
Previous: A simple ICL procedure

PONGO [2exof Applications for Interactive Data Plotting [2exon 2.0-2
Starlink User Note 137
Paul Harrison, Paul Rees,
Peter Draper, Alasdair Allan
27 March 2008
E-mail:ussc@star.rl.ac.uk

Copyright © 2010 Science and Technology Facilities Council