You are reading an old version of the documentation (v2.2.2). For the latest version see https://matplotlib.org/stable/api/backend_wxagg_api.html
Version 2.2.2
matplotlib
Fork me on GitHub

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)[source]

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)[source]

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)[source]

Render the figure using agg.

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

Bases: matplotlib.backends.backend_wx.FigureFrameWx

get_canvas(fig)[source]
class matplotlib.backends.backend_wxagg.Toolbar(**kwargs)[source]

Bases: matplotlib.backends.backend_wx.NavigationToolbar2Wx

Deprecated since version 2.2: The Toolbar class was deprecated in version 2.2. Use NavigationToolbar2WxAgg instead.