Re: [Matplotlib-users] How to plot 2d histogram with the same scale!!

2009-04-13 Thread Jouni K . Seppänen
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();

[Matplotlib-users] How to plot 2d histogram with the same scale!!

2009-04-12 Thread siz siz
Hi all,I want to use contourf function in matplotlib to plot 2D free energy histogram for my research. I have 2 plots and want them have the same colorbar scale so that I could compare the minima or maxima. I've been looking at colorbar doc but i can not find a solution. I always gets 2 different