Lewis, Ambrose J. wrote: > Hi All: > > I’m using the following code to create and display an image with a > colorbar. Later on, I read data from a file and update the image. > > How do I refresh the colorbar to match this new data?
For a colorbar cb I use: cb.set_clim(vmin=min_value,vmax=max_value) cb.draw_all() With this method you have to calculate the minimum and maximum values first. JLS ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users