PyFoam.Basics.GnuplotCompare module

Compare files with Gnuplot

class PyFoam.Basics.GnuplotCompare.GlobGnuplotCompare(pattern, col=2, common=None)[source]

Bases: PyFoam.Basics.GnuplotCompare.GnuplotCompare

Wrapper to Gnuplot Compare to compare files with similar names

__init__(pattern, col=2, common=None)[source]
Parameters:
  • pattern – The pattern for which to look
  • col – The colum that is to be compared
  • common – String that is to be removed from the filename before using it as a name
__module__ = 'PyFoam.Basics.GnuplotCompare'
class PyFoam.Basics.GnuplotCompare.GnuplotCompare(files, col=2)[source]

Bases: object

Class that compares a number of files with gnuplot

__dict__ = dict_proxy({'__module__': 'PyFoam.Basics.GnuplotCompare', 'writePlotFile': <function writePlotFile>, '__dict__': <attribute '__dict__' of 'GnuplotCompare' objects>, '__weakref__': <attribute '__weakref__' of 'GnuplotCompare' objects>, '__doc__': 'Class that compares a number of files with gnuplot', '__init__': <function __init__>})
__init__(files, col=2)[source]
Parameters:
  • files – a list of tuples: (filename,name [,col])
  • col – the default column to use
__module__ = 'PyFoam.Basics.GnuplotCompare'
__weakref__

list of weak references to the object (if defined)

writePlotFile(name)[source]
Parameters:name – Name of the file