Package peppy :: Package lib :: Module plotter :: Class PlotProxy
[frames] | no frames]

Class PlotProxy

object --+
         |
        PlotProxy
Known Subclasses:

Proxy object that represents a bunch of lines to be plotted in a MultiPlotter.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
getLines(self, *args)
Users should override this to return a list of plot.Polyline instances that represent the data to be plotted.
 
updateLines(self, *args)
Called by other objects to reset the internal state of the PlotProxy.
 
addListener(self, plotter)
Add a MultiPlotter as a listener.
 
getListeners(self)
Returns the list of MultiPlotter listeners
 
updateListeners(self, skip=[])
Force any listeners to update their plots
 
updateListenerExtrema(self)
Update the extrema of any listeners

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

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

getLines(self, *args)

 

Users should override this to return a list of plot.Polyline instances that represent the data to be plotted.

The x and y values are optional and are dependent on the user application to have passed them in through updateLines.

updateLines(self, *args)

 

Called by other objects to reset the internal state of the PlotProxy.

Coordinates x and y can optionally be specified in case the user proxy needs to do something on a user click of those coordinates.

addListener(self, plotter)

 

Add a MultiPlotter as a listener.

It's possible that more than one MultiPlotter will be interested in the same data. This keeps track of which plotter is interested and updates them when the data changes.