Package diffpy :: Package pdfgui :: Package control :: Module plotter :: Class Plotter
[hide private]
[frames] | no frames]

Class Plotter

source code

               object --+    
                        |    
pdfcomponent.PDFComponent --+
                            |
                           Plotter

Plots a single graph. It can have multiple curves. 



Nested Classes [hide private]
  Curve
Curve stores the information for a curve in the plot There are three ways of forming x and y data lists.
Instance Methods [hide private]
 
__init__(self, name=None)
initialize...
source code
 
close(self, force=True)
close up the plot...
source code
 
onWindowClose(self)
get called when self.window is closed by user...
source code
 
buildSymbolStyle(self, index=-1)
generate a symbol style...
source code
 
buildLineStyle(self, index=-1)
generate a line style...
source code
 
buildLineSymbolStyle(self, index=-1)
generate a linesymbol style...
source code
 
plot(self, xName, yNames, ids, shift, dry)
Make a 2D plot...
source code
 
show(self, bShow=None)
show the plot on screen bShow -- True to show, False to Hide.
source code
 
notify(self, data)
change of the data is notified...
source code
 
export(self, filename)
export current data to external file...
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  __plotWindowNumber = 1
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name=None)
(Constructor)

source code 
initialize

name -- name of plot

Overrides: pdfcomponent.PDFComponent.__init__

close(self, force=True)

source code 
close up the plot

force -- if True, close forcibly

Overrides: pdfcomponent.PDFComponent.close

onWindowClose(self)

source code 
get called when self.window is closed by user
        

buildSymbolStyle(self, index=-1)

source code 
generate a symbol style

index -- plotting style index

buildLineStyle(self, index=-1)

source code 
generate a line style

index -- plotting style index

buildLineSymbolStyle(self, index=-1)

source code 
generate a linesymbol style

index -- plotting style index

plot(self, xName, yNames, ids, shift, dry)

source code 
Make a 2D plot

xName --  x data item name
yNames -- list of y data item names
ids --    Objects where y data items are taken from
shift -- y spacing for different ids
dry -- dry run

show(self, bShow=None)

source code 
show the plot on screen

bShow -- True to show, False to Hide. None to toggle
return value: current status of window

notify(self, data)

source code 
change of the data is notified

data -- data object that has changed

export(self, filename)

source code 
export current data to external file

filename -- the name of the file to save data