Package PyFoam :: Package ThirdParty :: Package Gnuplot :: Module _Gnuplot :: Class _GnuplotFile
[hide private]
[frames] | no frames]

Class _GnuplotFile

source code

A file to which gnuplot commands can be written.

Sometimes it is convenient to write gnuplot commands to a command
file for later evaluation.  In that case, one of these objects is
used as a mock gnuplot process.  Note that temporary files may be
deleted before you have time to execute the file!

Members:

    'gnuplot' -- the file object gathering the commands.

Methods:

    '__init__' -- open the file.

    '__call__' -- write a gnuplot command to the file, followed by a
        newline.

    'write' -- write an arbitrary string to the file.

    'flush' -- cause pending output to be written immediately.

Instance Methods [hide private]
 
__init__(self, filename)
Open the file for writing.
source code
 
__call__(self, s)
Write a command string to the file, followed by newline.
source code