Class: GnuplotProcess

Table of Contents

Class: GnuplotProcess | Gnuplot/gp_macosx.py
--- | ---
### Unsophisticated interface to a running gnuplot program. This represents a running gnuplot program and the means to communicate with it at a primitive level (i.e., pass it commands or data). When the object is destroyed, the gnuplot program exits (unless the `persist` option was set). The communication is one-way; gnuplot's text output just goes to stdout with no attempt to check it for error messages. #### Members: `gnuplot` the pipe to the gnuplot command. #### Methods: `__init__` start up the program. `__call__` pass an arbitrary string to the gnuplot program, followed by a newline. `write` pass an arbitrary string to the gnuplot program. `flush` cause pending output to be written immediately.
Methods |
--- | ---
__call__ __init__
| __call__
    __call__ ( self,  s )
Send a command string to gnuplot, followed by newline.
| __init__
    __init__ ( self,  persist=None )
### Start a gnuplot process. Create a `GnuplotProcess` object. This starts a gnuplot program and prepares to write commands to it. #### Keyword arguments: `persist=1` start gnuplot with the `-persist` option, (which leaves the plot window on the screen even after the gnuplot program ends, and creates a new plot window each time the terminal type is set to `x11`). This option is not available on older versions of gnuplot.
Exceptions |
--- | ---
( '-persist does not seem to be supported ' 'by your version of gnuplot!' )

Table of Contents

This document was automatically generated on Sun Oct 19 17:10:22 2003 by HappyDoc version 2.1