Module wxmpl :: Class PlotApp
[frames] | no frames]

Class PlotApp

source code

     object --+                
              |                
wx._core.Object --+            
                  |            
wx._core.EvtHandler --+        
                      |        
         wx._core.PyApp --+    
                          |    
               wx._core.App --+
                              |
                             PlotApp

A wxApp that provides a matplotlib canvas embedded in a wxPython top-level window, encapsulating wxPython's nuts and bolts.

Nested Classes

Inherited from wx._core.App: outputWindowClass

Instance Methods
PyApp
__init__(self, title='WxMpl', size=(6.0, 3.7), dpi=96, cursor=True, location=True, crosshairs=True, selection=True, zoom=True, **kwds)
Creates a new PlotApp, which creates a PlotFrame top-level window.
source code
 
OnInit(self) source code
 
get_figure(self)
Returns the figure associated with this canvas.
source code
 
set_cursor(self, state)
Enable or disable the changing mouse cursor.
source code
 
set_location(self, state)
Enable or disable the display of the matplotlib axes coordinates of the mouse in the lower left corner of the canvas.
source code
 
set_crosshairs(self, state)
Enable or disable drawing crosshairs through the mouse cursor when it is inside a matplotlib axes.
source code
 
set_selection(self, state)
Enable or disable area selections, where user selects a rectangular area of the canvas by left-clicking and dragging the mouse.
source code
 
set_zoom(self, state)
Enable or disable zooming in when the user makes an area selection and zooming out again when the user right-clicks.
source code
 
draw(self)
Draw the associated Figure onto the screen.
source code

Inherited from wx._core.App: Destroy, MainLoop, RedirectStdio, RestoreStdio, SetOutputWindowAttributes, SetTopWindow, __del__

Inherited from wx._core.PyApp: Dispatch, Exit, ExitMainLoop, GetAppName, GetAssertMode, GetClassName, GetExitOnFrameDelete, GetPrintMode, GetTopWindow, GetTraits, GetUseBestVisual, GetVendorName, IsActive, Pending, ProcessIdle, ProcessPendingEvents, SendIdleEvents, SetAppName, SetAssertMode, SetClassName, SetExitOnFrameDelete, SetPrintMode, SetUseBestVisual, SetVendorName, WakeUpIdle, Yield, __repr__

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, ProcessEvent, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind

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

Static Methods

Inherited from wx._core.PyApp: GetComCtl32Version, GetMacAboutMenuItemId, GetMacExitMenuItemId, GetMacHelpMenuTitleName, GetMacPreferencesMenuItemId, GetMacSupportPCMenuShortcuts, IsMainLoopRunning, SetMacAboutMenuItemId, SetMacExitMenuItemId, SetMacHelpMenuTitleName, SetMacPreferencesMenuItemId, SetMacSupportPCMenuShortcuts

Class Variables
  ABOUT_TITLE = None
Title of the "About" dialog.
  ABOUT_MESSAGE = None
Contents of the "About" dialog.
Properties

Inherited from object: __class__

Method Details

__init__(self, title='WxMpl', size=(6.0, 3.7), dpi=96, cursor=True, location=True, crosshairs=True, selection=True, zoom=True, **kwds)
(Constructor)

source code 

Creates a new PlotApp, which creates a PlotFrame top-level window.

The keyword argument title specifies the title of this top-level window.

All of other the named keyword arguments to this constructor have the same meaning as those arguments to the constructor of PlotPanel.

Any additional keyword arguments are passed to the constructor of wx.App.

Returns: PyApp
Overrides: object.__init__

set_cursor(self, state)

source code 

Enable or disable the changing mouse cursor. When enabled, the cursor changes from the normal arrow to a square cross when the mouse enters a matplotlib axes on this canvas.