From: Jouni K. S. <jk...@ik...> - 2009-04-13 10:41:47
|
siz siz <cut...@gm...> 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 |