openalea.oalab.plot2d package

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()
Notes:
  • OpenAlea with the whole qt set should be installed
  • For pyplot integration, matplotlib should have 'qt4agg' backend
openalea.oalab.plot2d.activate_in_pyplot()[source]

redirect pyplot to TabWidget

openalea.oalab.plot2d.desactivate_in_pyplot()[source]

desibal pyplot redirection

Submodules

Table Of Contents

Previous topic

<no title>

Next topic

<no title>

This Page