How to plot 2d histogram with the same scale!!

siz siz <cute.man.sb@...287...> 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