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

Source Code for Module PyFoam.Basics.DummyPlotTimelines

 1  #  ICE Revision: $Id: /local/openfoam/Python/PyFoam/PyFoam/Basics/DummyPlotTimelines.py 5686 2009-10-01T23:01:19.710923Z bgschaid  $  
 2  """Plots a collection of timelines""" 
 3   
 4  from PyFoam.Error import warning,error 
 5   
 6  from PyFoam.Basics.CustomPlotInfo import readCustomPlotInfo,CustomPlotInfo 
 7   
 8  from GeneralPlotTimelines import GeneralPlotTimelines 
 9   
10  from os import uname 
11   
12 -class DummyPlotTimelines(GeneralPlotTimelines):
13 """This class doesn't open a window and plots nothing""" 14
15 - def __init__(self, 16 timelines, 17 custom, 18 showWindow=True, 19 registry=None):
20 """@param timelines: The timelines object 21 @type timelines: TimeLineCollection 22 @param custom: A CustomplotInfo-object. Values in this object usually override the 23 other options 24 """ 25 26 GeneralPlotTimelines.__init__(self,timelines,custom,showWindow=showWindow,registry=registry) 27 28 self.redo()
29
30 - def buildData(self,times,name,title,lastValid):
31 """Build the implementation specific data 32 @param times: The vector of times for which data exists 33 @param name: the name under which the data is stored in the timeline 34 @param title: the title under which this will be displayed""" 35 36 pass
37
38 - def preparePlot(self):
39 """Prepare the plotting window""" 40 41 pass
42
43 - def doReplot(self):
44 """Replot the whole data""" 45 46 pass
47
48 - def actualSetTitle(self,title):
49 """Sets the title""" 50 51 pass
52
53 - def setYLabel(self,title):
54 """Sets the label on the first Y-Axis""" 55 56 pass
57
58 - def setYLabel2(self,title):
59 """Sets the label on the second Y-Axis""" 60 61 pass
62
63 - def doHardcopy(self,filename,form):
64 """Write the contents of the plot to disk 65 @param filename: Name of the file without type extension 66 @param form: String describing the format""" 67 68 pass
69