Home | Trees | Index | Help |
|
---|
Package matplotlib :: Package backends :: Module backend_wx :: Class FigureCanvasWx |
|
FigureCanvasBase
--+ |wxObjectPtr
--+ | | |wxEvtHandlerPtr
--+ | | |wxWindowPtr
--+ | | |wxPanelPtr
--+ | | |wxPanel
--+ | FigureCanvasWx
FigureCanvasWxAgg
The FigureCanvas contains the figure and does event handling.
In the wxPython backend, it is derived from wxPanel, and (usually) lives inside a frame instantiated by a FigureManagerWx. The parent window probably implements a wx.Sizer to control the displayed control size - but we give a hint as to our preferred minimum size.Method Summary | |
---|---|
Initialise a FigureWx instance. | |
return the wildcard string for the filesave dialog | |
_get_key(self,
evt)
| |
Capture key press. | |
Release key. | |
Start measuring on an axis. | |
End measuring on an axis. | |
Start measuring on an axis. | |
_onMouseWheel(self,
evt)
| |
Called when wxPaintEvt is generated | |
Start measuring on an axis. | |
End measuring on an axis. | |
Called when wxEventSize is generated. | |
copy bitmap of canvas to system clipboard | |
Destroy(self,
*args,
**kwargs)
| |
Render the figure using RendererWx instance renderer, or using a previously defined renderer if none is specified. | |
Performs update of the displayed image on the GUI canvas | |
Render the figure to hardcopy | |
initialize printer settings using wx methods | |
generate Print Preview with wx Print mechanism | |
Print figure using wx Print mechanism | |
set up figure for printing. | |
set up figure for printing. | |
This method will be called when the system is ready to draw, eg when a GUI window is realized | |
Inherited from FigureCanvasBase | |
blit the canvas in bbox (default entire canvas) | |
Backend derived classes should call this function on any mouse button press. | |
Backend derived classes should call this function on any mouse button release. | |
Draw a cursor in the event.axes if inaxes is not None. | |
| |
draw only if idle; defaults to draw but backends can overrride | |
return the figure width and height in points or pixels (depending on the backend), truncated to integers | |
| |
| |
Backend derived classes should call this function on any motion-notify-event. | |
Connect event with string s to func. | |
Connect s to func. | |
instantiate an instance of FigureCanvasClass | |
Inherited from wxPanelPtr | |
| |
| |
| |
Inherited from wxWindowPtr | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Inherited from wxEvtHandlerPtr | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Inherited from wxObjectPtr | |
|
Class Variable Summary | |
---|---|
dict |
keyvald = {306: 'shift', 307: 'alt', 308: 'control', 316...
|
Inherited from FigureCanvasBase | |
tuple |
events = ('key_press_event', 'key_release_event', 'butto...
|
Method Details |
---|
__init__(self,
parent,
id,
figure)
|
_get_imagesave_wildcards(self)return the wildcard string for the filesave dialog |
_onKeyDown(self, evt)Capture key press. |
_onKeyUp(self, evt)Release key. |
_onLeftButtonDown(self, evt)Start measuring on an axis. |
_onLeftButtonUp(self, evt)End measuring on an axis. |
_onMotion(self, evt)Start measuring on an axis. |
_onPaint(self, evt)Called when wxPaintEvt is generated |
_onRightButtonDown(self, evt)Start measuring on an axis. |
_onRightButtonUp(self, evt)End measuring on an axis. |
_onSize(self, evt)Called when wxEventSize is generated. In this application we attempt to resize to fit the window, so it is better to take the performance hit and redraw the whole window. |
Copy_to_Clipboard(self, event=None)copy bitmap of canvas to system clipboard |
draw(self)Render the figure using RendererWx instance renderer, or using a previously defined renderer if none is specified. |
gui_repaint(self)Performs update of the displayed image on the GUI canvas MUST NOT be called during a Paint event |
print_figure(self, filename, dpi=150, facecolor='w', edgecolor='w', orientation='portrait')Render the figure to hardcopy |
Printer_Init(self)initialize printer settings using wx methods |
Printer_Preview(self, event=None)generate Print Preview with wx Print mechanism |
Printer_Print(self, event=None)Print figure using wx Print mechanism |
Printer_Setup(self, event=None)set up figure for printing. The standard wx Printer Setup Dialog seems to die easily. Therefore, this setup simply asks for image width and margin for printing. |
Printer_Setup2(self, event=None)set up figure for printing. Using the standard wx Printer Setup Dialog. |
realize(self)This method will be called when the system is ready to draw, eg when a GUI window is realized |
Class Variable Details |
---|
keyvald
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Aug 28 13:47:49 2006 | http://epydoc.sf.net |