Common Lisp Package: CL-GRACE

README:

FUNCTION

Public

CLOSE-PLOT (PLOT)

Close a grace plot.

NEW-PLOT (&REST GRACE-CMDLINE-ARGS)

Create a new grace plot. Return a `live' plot object to which commands can be sent.

OPEN-PLOT (FILENAME &REST GRACE-CMDLINE-ARGS)

Open an existing grace project file. Return a `live' plot object to which commands can be sent.

SAVE-PLOT (PLOT FILENAME)

Save plot to filename as a grace project file.

SEND-COMMAND (PLOT COMMAND &KEY (FLUSH T))

Send command (a string) to the given plot (a plot object).

SET-GRAPH-AXES (PLOT GRAPH-NUM &KEY XMIN XMAX YMIN YMAX XSCALE YSCALE XINV YINV (UPDATE-GUI T) (REDRAW T))

Function: set-graph-axes plot : plot graph-num : non-negative integer xmin : real xmax : real ymin : real ymax : real xscale : string-designator, "normal", "log" or "recip" yscale : string-designator, "normal", "log" or "recip" xinv : string-designator, "on" or "off" yinv : string-designator, "on" or "off" update-gui : boolean redraw : boolean Set the axes properties of a graph.

SET-GRAPH-LEGEND (PLOT GRAPH-NUM &KEY ONOFF LOCATION LOCTYPE FONT CHAR-SIZE COLOR VGAP HGAP LENGTH INVERT BOX BOX-COLOR BOX-PATTERN BOX-LINESTYLE BOX-LINEWIDTH BOX-FILL BOX-FILL-COLOR BOX-FILL-PATTERN (UPDATE-GUI T) (REDRAW T))

Function: set-graph-legend plot : plot graph-num : non-negative integer onoff : string-designator, "on" or "off" location : sequence of two reals loctype : string-designator, "world" or "view" font : non-negative integer char-size : non-negative integer color : non-negative integer vgap : non-negative integer length : non-negative integer invert : string-designator, "on" or "off" box : string-designator, "on" or "off" box-color : non-negative integer box-pattern : non-negative integer box-linestyle : non-negative integer box-linewidth : non-negative integer box-fill : string-designator, "on" or "off" box-fill-color : non-negative integer box-fill-pattern : non-negative integer update-gui : boolean redraw : boolean Set the legend properties of a graph.

SET-GRAPH-SUBTITLE (PLOT GRAPH-NUM &KEY SUBTITLE FONT SIZE COLOR (UPDATE-GUI T) (REDRAW T))

Function: set-graph-subtitle plot : plot graph-num : non-negative integer subtitle : string font : non-negative integer size : non-negative integer color : non-negative integer update-gui : boolean redraw : boolean Set the subtitle properties of a graph.

SET-GRAPH-TITLE (PLOT GRAPH-NUM &KEY TITLE FONT SIZE COLOR (UPDATE-GUI T) (REDRAW T))

Function: set-graph-title plot : plot graph-num : non-negative integer title : string font : non-negative integer size : non-negative integer color : non-negative integer update-gui : boolean redraw : boolean Set the title properties of a graph.

SET-GRAPH-TYPE (PLOT GRAPH-NUM TYPE &KEY (UPDATE-GUI T) (REDRAW T))

Function: set-graph-type plot : plot graph-num : non-negative integer type : string-designator update-gui : boolean redraw : boolean Set the type of a graph.

SET-GRAPH-VIEW (PLOT GRAPH-NUM &KEY XMIN XMAX YMIN YMAX (UPDATE-GUI T) (REDRAW T))

Function: set-graph-view plot : plot graph-num : non-negative integer xmin : real xmax : real ymin : real ymax : real update-gui : boolean redraw : boolean Set the viewport properties of a graph.

GENERIC-FUNCTION

Public

ENCODE-DATUM (DATUM)

Encode the given datum into a string representation to send to grace.

SEND-DATA (PLOT GRAPH-NUM SET-NUM DATA &KEY APPEND REDRAW UPDATE-GUI (UPDATE-GUI T) (REDRAW T))

Send data to a particular plot/graph/set, replacing the set's data with that given, unless append is non-null in which case append to it. If update-gui is non-null then update the GUI to fully reflect project state. If redraw is non-null then redraw the plot afterwards.

Private

PLOT-COMMAND-STREAM (PLOT)

Return the output stream to use for sending commands to the given plot.

Undocumented

GRACE-ERROR-TEXT (CONDITION)

SLOT-ACCESSOR

Public

Undocumented

PLOT-PROCESS (OBJECT)

SETFPLOT-PROCESS (NEW-VALUE OBJECT)

VARIABLE

Public

Undocumented

*GRACE-PROGRAM*

CLASS

Public

PLOT

Encapsulate a grace process object.

Private

DUMMY-PLOT

A dummy plot on which to condition generic functions for debugging purposes.

CONDITION

Private

Undocumented

GRACE-ERROR