matplotlib

Previous topic

matplotlib.backends.backend_gtkagg

Next topic

matplotlib.backends.backend_wxagg

This Page

matplotlib.backends.backend_qt4agg

Render to qt from agg

class matplotlib.backends.backend_qt4agg.FigureCanvasQTAgg(figure)

Bases: matplotlib.backends.backend_qt4.FigureCanvasQT, matplotlib.backends.backend_agg.FigureCanvasAgg

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)
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)
class matplotlib.backends.backend_qt4agg.FigureManagerQTAgg(canvas, num)

Bases: matplotlib.backends.backend_qt4.FigureManagerQT

class matplotlib.backends.backend_qt4agg.NavigationToolbar2QTAgg(canvas, parent, coordinates=True)

Bases: matplotlib.backends.backend_qt4.NavigationToolbar2QT

coordinates: should we show the coordinates on the right?

matplotlib.backends.backend_qt4agg.new_figure_manager(num, *args, **kwargs)

Create a new figure manager instance

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

Create a new figure manager instance for the given figure.