matplotlib.backends.backend_qt5agg

Render to qt from agg

matplotlib.backends.backend_qt5agg.FigureCanvas

alias of FigureCanvasQTAgg

class matplotlib.backends.backend_qt5agg.FigureCanvasQTAgg(figure)

Bases: matplotlib.backends.backend_qt5agg.FigureCanvasQTAggBase, matplotlib.backends.backend_qt5.FigureCanvasQT

The canvas the figure renders into. Calls the draw and print fig methods, creates the renderers, etc.

Modified to import from Qt5 backend for new-style mouse events.

Attributes

figure (matplotlib.figure.Figure) A high-level Figure instance
class matplotlib.backends.backend_qt5agg.FigureCanvasQTAggBase(figure)

Bases: matplotlib.backends.backend_agg.FigureCanvasAgg

The canvas the figure renders into. Calls the draw and print fig methods, creates the renderers, etc…

Attributes

figure (matplotlib.figure.Figure) A high-level Figure instance
blit(bbox=None)

Blit the region in bbox.

blitbox

Deprecated since version 2.1: The blitbox function was deprecated in version 2.1.

draw()

Draw the figure with Agg, and queue a request for a Qt draw.

drawRectangle(rect)
draw_idle()

Queue redraw of the Agg buffer and request Qt paintEvent.

paintEvent(e)

Copy the image from the Agg canvas to the qt.drawable.

In Qt, all drawing should be done inside of here when a widget is shown onscreen.

print_figure(*args, **kwargs)

© 2012–2017 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
http://matplotlib.org/2.1.0/api/backend_qt5agg_api.html