PyFoam.Basics.GnuplotTimelines module

Plots a collection of timelines

class PyFoam.Basics.GnuplotTimelines.GnuplotTimelines(timelines, custom, terminal='x11', showWindow=True, quiet=False, registry=None)[source]

Bases: PyFoam.Basics.GeneralPlotTimelines.GeneralPlotTimelines, PyFoam.ThirdParty.Gnuplot._Gnuplot.Gnuplot

This class opens a gnuplot window and plots a timelines-collection in it

actualSetTitle(title)[source]

Sets the title

addVerticalMarker(colorRGB=None, label=None)[source]

Add a vertical line to the graph at the current time

buildData(times, name, title, lastValid, tag=None)[source]

Build the implementation specific data :param times: The vector of times for which data exists :param name: the name under which the data is stored in the timeline :param title: the title under which this will be displayed

doHardcopy(filename, form, termOpts='')[source]

Write the contents of the plot to disk :param filename: Name of the file without type extension :param form: String describing the format

doReplot()[source]

Replot the whole data

internalHardcopy(terminal, filename)[source]

Emulate the regular hardcopy command

preparePlot()[source]

Prepare the plotting window

rgb2spec(rgb)[source]
setYLabel(title)[source]

Sets the label on the first Y-Axis

setYLabel2(title)[source]

Sets the label on the second Y-Axis

terminalNr = 1
PyFoam.Basics.GnuplotTimelines.validTerminals()[source]

Returns a list with the valid Gnuplot terminals