A simple procedure that reproduces the tutorial example looks like:
If you enter this text into a file say calledproc icltest file begplot xw readf data=(file) xcol=1 ycol=3 all reset dlimits boxframe points 3 label 'X axis' 'Y axis' 'PLOT TITLE' endplot endproc
icltest.icl and use
the following commands from ICL:
The data from the tutorial example will be plotted as before. One immediate advantage of this method is that we can now plot data from columns 1 and 3 of any file.ICL > load icltest ICL > icltest (TUTORIAL_DATA)
If the contents of the procedure are wrong or need a slight modification then you can edit the procedure from ICL. Try the command:
This puts you into an editor and you can modify the procedure. (If you haven't set an environment variable EDITOR or used the ICL commandICL > edit icltest
set editor, you'll find yourself in vi. To exit from this
type the command :q and now use the set editor
command.) If you made a modification to the procedure this can be
viewed using the command:
All the currently available procedures are shown using the command:ICL > list icltest
If you do modify a procedure from ICL use the:ICL > procs
command to write out your changes (you should use the name of your procedure instead ofICL > save icltest
icltest).
PONGO [2exof Applications for Interactive Data Plotting [2exon 2.0-2