You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 2.0.0b1.post7580.dev0+ge487118
matplotlib
Fork me on GitHub

This Page

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)