siz siz <cute.man...@gmail.com> writes: > I have 2 plots and want them have the same colorbar scale so that I > could compare the minima or maxima.
You can do it like this: mn = min(data1.min(), data2.min()) mx = max(data1.max(), data2.max()) norm = matplotlib.colors.Normalize(mn, mx) figure(); contourf(data1, norm=norm); colorbar() figure(); contourf(data2, norm=norm); colorbar() -- Jouni K. Seppänen http://www.iki.fi/jks ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users