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 when xwindows is ready for the update

drawRectangle(rect)
paintEvent(e)

Draw to the Agg backend and then copy the image 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