Table of Contents

Class: GnuplotProcess Gnuplot/

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.


the pipe to the gnuplot command.


start up the program.
pass an arbitrary string to the gnuplot program, followed by a newline.
pass an arbitrary string to the gnuplot program.
cause pending output to be written immediately.
__call__ ( self,  s )

Send a command string to gnuplot, followed by newline.

__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:

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.
( '-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