[Matplotlib-users] Scrolling plot and colorbar

2011-11-02 Thread Gökhan Sever
Hello,

I slightly modified the example show at
http://www.scipy.org/Cookbook/Matplotlib/ScrollingPlot to plot image data.
My version of the code is at:
http://code.google.com/p/ccnworks/source/browse/trunk/various/scroll.py

What is the correct way to add a colorbar to this plot? A simple
plt.colorbar(axes) yields no colorbar drawn.

Thanks.

-- 
Gökhan
--
RSA#174; Conference 2012
Save $700 by Nov 18
Register now#33;
http://p.sf.net/sfu/rsa-sfdev2dev1___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Scrolling plot and colorbar

2011-11-02 Thread Gökhan Sever
A self response:

self.fig.colorbar(self.plot_data)

does the trick.

On Wed, Nov 2, 2011 at 11:14 AM, Gökhan Sever gokhanse...@gmail.com wrote:

 Hello,

 I slightly modified the example show at
 http://www.scipy.org/Cookbook/Matplotlib/ScrollingPlot to plot image
 data. My version of the code is at:
 http://code.google.com/p/ccnworks/source/browse/trunk/various/scroll.py

 What is the correct way to add a colorbar to this plot? A simple
 plt.colorbar(axes) yields no colorbar drawn.

 Thanks.

 --
 Gökhan




-- 
Gökhan
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users