.draw() On Sun, Oct 30, 2011 at 10:51 AM, Daniel Welling <dantwell...@gmail.com> wrote: > Greetings, MatPlotLibbers. > > Since 1.1, pyplot.draw() in interactive mode only updates the current axis. > If I want to update many axes, I need to use sca() and draw() for each one. > Is there a way to update all axes?
I'm not seeing this, and I'm not sure *why* it would be occurring for you. plt.draw triggers a call to fig.canvas.draw which calls draw on all axes. Here is some example code in ipython, which has 'ion". In [2]: fig, axes = plt.subplots(2) In [3]: axes[0].plot([1,2,3]) Out[3]: [<matplotlib.lines.Line2D at 0x4b90550>] In [4]: axes[1].plot([1,2,3]) Out[4]: [<matplotlib.lines.Line2D at 0x4b90610>] In [5]: plt.draw() The call to 'plt.draw' on line 5 triggers a draw to both axes. Can you provide an example which exposes your problem? Please also provide backend and OS information In [6]: !uname -a Linux pinchiepie 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux In [7]: import matplotlib; print matplotlib.__version__ 1.2.x In [8]: matplotlib.rcParams['backend'] Out[8]: 'WXAgg' JDH ------------------------------------------------------------------------------ Get your Android app more play: Bring it to the BlackBerry PlayBook in minutes. BlackBerry App World™ now supports Android™ Apps for the BlackBerry® PlayBook™. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users