Module wxmpl :: Class PlotApp
[show private | hide private]
[frames | no frames]

Class PlotApp

wxObjectPtr --+                
              |                
wxEvtHandlerPtr --+            
                  |            
         wxPyAppPtr --+        
                      |        
                wxPyApp --+    
                          |    
                      wxApp --+
                              |
                             PlotApp


A wxApp that provides a matplotlib canvas embedded in a wxPython top-level window, encapsulating wxPython's nuts and bolts.
Method Summary
  __init__(self, title, size, dpi, cursor, location, crosshairs, selection, zoom, **kwds)
Creates a new PlotApp, which creates a PlotFrame top-level window.
  draw(self)
Draw the associated Figure onto the screen.
  get_figure(self)
Returns the figure associated with this canvas.
  OnInit(self)
  set_crosshairs(self, state)
Enable or disable drawing crosshairs through the mouse cursor when it is inside a matplotlib axes.
  set_cursor(self, state)
Enable or disable the changing mouse cursor.
  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.
  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.
  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.
    Inherited from wxApp
  __del__(self)
  MainLoop(self)
  RedirectStdio(self, filename)
  RestoreStdio(self)
  SetTopWindow(self, frame)
    Inherited from wxPyAppPtr
  __repr__(self)
  Dispatch(self, *_args, **_kwargs)
  ExitMainLoop(self, *_args, **_kwargs)
  GetAppName(self, *_args, **_kwargs)
  GetAssertMode(self, *_args, **_kwargs)
  GetClassName(self, *_args, **_kwargs)
  GetExitOnFrameDelete(self, *_args, **_kwargs)
  GetPrintMode(self, *_args, **_kwargs)
  GetTopWindow(self, *_args, **_kwargs)
  GetUseBestVisual(self, *_args, **_kwargs)
  GetVendorName(self, *_args, **_kwargs)
  Initialized(self, *_args, **_kwargs)
  Pending(self, *_args, **_kwargs)
  ProcessIdle(self, *_args, **_kwargs)
  SetAppName(self, *_args, **_kwargs)
  SetAssertMode(self, *_args, **_kwargs)
  SetClassName(self, *_args, **_kwargs)
  SetExitOnFrameDelete(self, *_args, **_kwargs)
  SetPrintMode(self, *_args, **_kwargs)
  SetUseBestVisual(self, *_args, **_kwargs)
  SetVendorName(self, *_args, **_kwargs)
  Yield(self, *_args, **_kwargs)
  _setCallbackInfo(self, *_args, **_kwargs)
    Inherited from wxEvtHandlerPtr
  AddPendingEvent(self, *_args, **_kwargs)
  Connect(self, *_args, **_kwargs)
  Disconnect(self, *_args, **_kwargs)
  GetEvtHandlerEnabled(self, *_args, **_kwargs)
  GetNextHandler(self, *_args, **_kwargs)
  GetPreviousHandler(self, *_args, **_kwargs)
  ProcessEvent(self, *_args, **_kwargs)
  SetEvtHandlerEnabled(self, *_args, **_kwargs)
  SetNextHandler(self, *_args, **_kwargs)
  SetPreviousHandler(self, *_args, **_kwargs)
  _setOORInfo(self, *_args, **_kwargs)
    Inherited from wxObjectPtr
  Destroy(self, *_args, **_kwargs)

Class Variable Summary
NoneType ABOUT_MESSAGE: Contents of the "About" dialog.
NoneType ABOUT_TITLE: Title of the "About" dialog.
    Inherited from wxApp
str error = 'wxApp.error'

Method Details

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

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.
Overrides:
wxPython.wx.wxApp.__init__

draw(self)

Draw the associated Figure onto the screen.

get_figure(self)

Returns the figure associated with this canvas.

set_crosshairs(self, state)

Enable or disable drawing crosshairs through the mouse cursor when it is inside a matplotlib axes.

set_cursor(self, state)

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.

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.

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.

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.

Class Variable Details

ABOUT_MESSAGE

Contents of the "About" dialog.
Type:
NoneType
Value:
None                                                                  

ABOUT_TITLE

Title of the "About" dialog.
Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Mon Aug 28 13:47:50 2006 http://epydoc.sf.net