Package that provides a single qt widget for matplotlib figure Author: Julien Diener
To get pyplot actions redirected to the plot2d widget, use:
from openalea.oalab import plot2d
plot2d.activate_in_pyplot()
Then you can use pyplot as usual:
from matplotlib import pyplot as plt
plt.ion() # interactive plot
plt.plot(range(3)*4)
To disable pyplot redirection, do:
from openalea.oalab import plot2d
plot2d.desactivate_in_pyplot()