UniDec
Universal Deconvolution of Mass and Ion Mobility Spectra
Public Member Functions | Public Attributes | List of all members
UniDec.unidec_modules.PlotAnimations.AnimationWindow Class Reference
Inheritance diagram for UniDec.unidec_modules.PlotAnimations.AnimationWindow:
Inheritance graph
[legend]
Collaboration diagram for UniDec.unidec_modules.PlotAnimations.AnimationWindow:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, parent, data_list, config=None, yvals=None, mode="1D", args, kwargs)
 
def on_close (self, e)
 
def update (self, frame_number)
 
def update_plot (self)
 
def init (self)
 
def on_play (self, e)
 
def refresh_plot (self)
 
def on_next (self, e)
 
def on_back (self, e)
 
def update_framerate (self, e)
 

Public Attributes

 mode
 
 config
 
 datalist
 
 yvals
 
 dim
 
 pos
 
 play
 
 animation
 
 plot
 
 frslider
 
 playbutton
 
 nextbutton
 
 backbutton
 
 ctlautoscale
 

Constructor & Destructor Documentation

def UniDec.unidec_modules.PlotAnimations.AnimationWindow.__init__ (   self,
  parent,
  data_list,
  config = None,
  yvals = None,
  mode = "1D",
  args,
  kwargs 
)
A simple window for animating mulitple 1D or 2D plots in a sequence.
:param parent: Parent window. Passed to wx.Frame.
:param data_list: List of data to be plotted
:param config: UniDecConfig object
:param yvals: Titles for the plots.
:param mode: 1 = 1D plots, 2 = 2D plots
:param args:
:param kwargs: 
:return: None

Member Function Documentation

def UniDec.unidec_modules.PlotAnimations.AnimationWindow.init (   self)
Create a fresh plot and start the animation.
:return: None

Here is the call graph for this function:

def UniDec.unidec_modules.PlotAnimations.AnimationWindow.on_back (   self,
  e 
)
Plot the previous data set in data_list.
:param e: Unused event
:return: None

Here is the call graph for this function:

def UniDec.unidec_modules.PlotAnimations.AnimationWindow.on_close (   self,
  e 
)
Stop the animation and close the window.
:param e: Unused event
:return: None
def UniDec.unidec_modules.PlotAnimations.AnimationWindow.on_next (   self,
  e 
)
Plot the next data set in data_list.
:param e: Unused event
:return: None

Here is the call graph for this function:

def UniDec.unidec_modules.PlotAnimations.AnimationWindow.on_play (   self,
  e 
)
Toggles self.play on or off. Will break the while loop in self.update if self.play = False.
:param e: Unused event
:return: None
def UniDec.unidec_modules.PlotAnimations.AnimationWindow.refresh_plot (   self)
Create a fresh plot from the top.
:return: None

Here is the caller graph for this function:

def UniDec.unidec_modules.PlotAnimations.AnimationWindow.update (   self,
  frame_number 
)
Continues to increment the plot to the next value in the data_list. Will stop if self.play is False.
:param frame_number: Required but unused. Filled by FuncAnimation.
:return: 0

Here is the call graph for this function:

Here is the caller graph for this function:

def UniDec.unidec_modules.PlotAnimations.AnimationWindow.update_framerate (   self,
  e 
)
Change the frame rate. Restart the animation with fresh frame rate.
:param e: Unused event
:return: None

Here is the call graph for this function:

def UniDec.unidec_modules.PlotAnimations.AnimationWindow.update_plot (   self)
Increment to the next data set and update teh plot with the new data.
Tries to keep some of the old plotting parameters like the zoom the same.
Stops the animation if an error occurs.
:return: None

Here is the caller graph for this function:

Member Data Documentation

UniDec.unidec_modules.PlotAnimations.AnimationWindow.animation
UniDec.unidec_modules.PlotAnimations.AnimationWindow.backbutton
UniDec.unidec_modules.PlotAnimations.AnimationWindow.config
UniDec.unidec_modules.PlotAnimations.AnimationWindow.ctlautoscale
UniDec.unidec_modules.PlotAnimations.AnimationWindow.datalist
UniDec.unidec_modules.PlotAnimations.AnimationWindow.dim
UniDec.unidec_modules.PlotAnimations.AnimationWindow.frslider
UniDec.unidec_modules.PlotAnimations.AnimationWindow.mode
UniDec.unidec_modules.PlotAnimations.AnimationWindow.nextbutton
UniDec.unidec_modules.PlotAnimations.AnimationWindow.play
UniDec.unidec_modules.PlotAnimations.AnimationWindow.playbutton
UniDec.unidec_modules.PlotAnimations.AnimationWindow.plot
UniDec.unidec_modules.PlotAnimations.AnimationWindow.pos
UniDec.unidec_modules.PlotAnimations.AnimationWindow.yvals

The documentation for this class was generated from the following file: