Package PyFoam :: Package Basics :: Module GnuplotFile :: Class GnuplotFile
[hide private]
[frames] | no frames]

Class GnuplotFile

source code

object --+
         |
        GnuplotFile

Instance Methods [hide private]
  __init__(self, fname)
  analyze(self)
Find out how many columns there are and what their names are There are two cases: 1.
  writePlotFile(self, name)
Writes a file that can be used by Gnuplot

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, fname)
(Constructor)

source code 
Parameters:
  • fname - The filename
Overrides: object.__init__

analyze(self)

source code 

Find out how many columns there are and what their names are

There are two cases:

1. the first line is not a comment. In this case the column names are 'time' and 'value0x'
depending on how many values are in the first line

2. the first line is a comment line (it starts with a #). In this case the rest of the line
is analyzed and used as names

writePlotFile(self, name)

source code 
Writes a file that can be used by Gnuplot
Parameters:
  • name - name of the file