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

Class GnuplotFile


Method Summary
  __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

Method Details

__init__(self, fname)
(Constructor)

Parameters:
fname - The filename

analyze(self)

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)

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

Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 http://epydoc.sf.net