Scrolling plot and colorbar

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

A self response:

self.fig.colorbar(self.plot_data)

does the trick.

···

On Wed, Nov 2, 2011 at 11:14 AM, Gökhan Sever <gokhansever@…287…> 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