W3cubDocs

/Matplotlib 2.0

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, matplotlib.backends.backend_agg.FigureCanvasAgg

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.

Public attribute

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

Bases: object

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

Public attribute

figure - A Figure instance
blit(bbox=None)

Blit the region in bbox

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)
matplotlib.backends.backend_qt5agg.new_figure_manager(num, *args, **kwargs)

Create a new figure manager instance

matplotlib.backends.backend_qt5agg.new_figure_manager_given_figure(num, figure)

Create a new figure manager instance for the given figure.

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