Version 0.2.2  

S-Lang Grace Plotting Module

 

Figure showing a histogram plot
Grace (formerly Xmgr) is a popular plotting program for Unix that features a GUI for WYSIWYG generation of publication quality 2-D graphs. The grace-module provides a high-level, object-oriented interface between the S-Lang interpreter and the Grace plotting application. Plotting via the module from S-Lang applications such as slsh can be as easy as:
    slsh> g = grace_new();
    slsh> g.plot(x,y;color="blue");
    slsh> g.save("myplot.ps");
As this simple example suggests, the module also supports multiple Grace instances.

The figure at the top of this page was created using the grace-module. See the tutorial for step by step instructions for the creation of this plot.


This page was last updated Sep 8, 2007 by John E. Davis. To comment on it or the material presented here, send email to jed at jedsoft org.
Valid HTML 4.01! Made with JED Viewable With Any Browser