Version 2.2.2
matplotlib

This Page

matplotlib.backends.backend_wxagg

matplotlib.backends.backend_wxagg.FigureCanvas

alias of matplotlib.backends.backend_wxagg.FigureCanvasWxAgg

class matplotlib.backends.backend_wxagg.FigureCanvasWxAgg(parent, id, figure)

Bases: matplotlib.backends.backend_agg.FigureCanvasAgg, matplotlib.backends.backend_wx._FigureCanvasWxBase

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 wxSizer to control the displayed control size - but we give a hint as to our preferred minimum size.

Initialise a FigureWx instance.

  • Initialise the FigureCanvasBase and wxPanel parents.
  • Set event handlers for: EVT_SIZE (Resize event) EVT_PAINT (Paint event)
blit(bbox=None)

Transfer the region of the agg buffer defined by bbox to the display. If bbox is None, the entire buffer is transferred.

draw(drawDC=None)

Render the figure using agg.

filetypes = {u'eps': u'Encapsulated Postscript', u'jpeg': u'Joint Photographic Experts Group', u'jpg': u'Joint Photographic Experts Group', u'pdf': u'Portable Document Format', u'pgf': u'PGF code for LaTeX', u'png': u'Portable Network Graphics', u'ps': u'Postscript', u'raw': u'Raw RGBA bitmap', u'rgba': u'Raw RGBA bitmap', u'svg': u'Scalable Vector Graphics', u'svgz': u'Scalable Vector Graphics', u'tif': u'Tagged Image File Format', u'tiff': u'Tagged Image File Format'}
class matplotlib.backends.backend_wxagg.FigureFrameWxAgg(num, fig)

Bases: matplotlib.backends.backend_wx.FigureFrameWx

get_canvas(fig)
class matplotlib.backends.backend_wxagg.Toolbar(*args, **kwargs)

Bases: matplotlib.backends.backend_wx.NavigationToolbar2Wx