Package PyFoam :: Package ThirdParty :: Package Gnuplot :: Module gp_mac :: Class GnuplotProcess
[hide private]
[frames] | no frames]

Class GnuplotProcess

source code

Unsophisticated interface to a running gnuplot program.

See gp_unix.GnuplotProcess for usage information.

Instance Methods [hide private]
  __init__(self, persist=0)
Start a gnuplot process.
  write(self, s)
Mac gnuplot apparently requires ' ' to end statements.
  flush(self)
  __call__(self, s)
Send a command string to gnuplot, for immediate execution.

Method Details [hide private]

__init__(self, persist=0)
(Constructor)

source code 
Start a gnuplot process.

Create a 'GnuplotProcess' object.  This starts a gnuplot
program and prepares to write commands to it.

Keyword arguments:

  'persist' -- the '-persist' option is not supported on the
               Macintosh so this argument must be zero.

write(self, s)

source code 
Mac gnuplot apparently requires ' ' to end statements.

flush(self)

source code 
None

__call__(self, s)
(Call operator)

source code 
Send a command string to gnuplot, for immediate execution.