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


Travis-CI:

This Page

matplotlib.backends.backend_qt5agg

Render to qt from agg

matplotlib.backends.backend_qt5agg.FigureCanvas

alias of matplotlib.backends.backend_qt5agg.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)