Thomas Robitaille wrote: > Hello, > > I am plotting a numpy array with > > image = imshow(array,vmin=0,vmax=100) > > If I want to change the array, I can then do > > image.set_data(new_array) > > and I can also update the colormap, etc. But I can't find any options > to update the vmin and vmax values. Am I missing something? What I am > looking for is something like this: > > image = imshow(array,vmin=0,vmax=100) > image.set_vmin = 10 > > but there is now such function.
image.set_clim(vmin=10) You will have to call draw() because the OO interface does not do so automatically. Or you can use the pyplot clim() function, which does call draw. Eric > > Thanks, > > Thomas > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users