From: Yogesh Wadadekar <wadadekar@st...>  20060314 16:04:41

Hi, I encounter problems with the solution below. My test case from yesterday was really not a 'test case' because both images had near identical values. Thus, the auto vmin,vmax settings were the same in both images. The problem seems to be with the type of im.norm.vmin > In [3]: im = imshow(rand(20,20)) In [1]: im = imshow(rand(20,20)) > In [4]: im.norm.vmin > Out[4]: 0.001056874287314713 In [2]: im.norm.vmin In [3]: type(im.norm.vmin) Out[3]: <type 'NoneType'> > > In [5]: im.norm.vmax > Out[5]: 0.99817508459091187 In [4]: im.norm.vmax In [5]: type(im.norm.vmax) Out[5]: <type 'NoneType'> > > In [6]: newim = imshow(rand(30,30), vmin=im.norm.vmin, vmax=im.norm.vmax) In [7]: newim = imshow(rand(30,30), vmin=im.norm.vmin, vmax=im.norm.vmax) This works but im.norm.vmin and im.norm.vmax are not used! I am using matplotlib0.87.1 and Python 2.3.4 on Fedora Core 3. Yogesh 