PyFoam.Basics.QwtPlotTimelines module

Plots a collection of timelines

class PyFoam.Basics.QwtPlotTimelines.QwtPlotTimelines(timelines, custom, showWindow=True, quiet=False, registry=None)[source]

Bases: PyFoam.Basics.GeneralPlotTimelines.GeneralPlotTimelines

This class opens a Qt-window and plots a timelines-collection in aQwt.Plot-widget

__init__(timelines, custom, showWindow=True, quiet=False, registry=None)[source]
Parameters
  • timelines (TimeLineCollection) – The timelines object

  • custom – A CustomplotInfo-object. Values in this object usually override the

other options

__module__ = 'PyFoam.Basics.QwtPlotTimelines'
actualSetTitle(title)[source]

Sets the title

buildData(times, name, title, lastValid)[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=None)[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

figureNr = 1
preparePlot()[source]

Prepare the plotting window

setYLabel(title)[source]

Sets the label on the first Y-Axis

setYLabel2(title)[source]

Sets the label on the second Y-Axis