![](https://secure.gravatar.com/avatar/f08b017938d6a01d49546bf1b711885d.jpg?s=120&d=mm&r=g)
5 Mar
2008
5 Mar
'08
7:36 p.m.
my apologise for the previous mail in spanish well, my question is how show a image in scale of gray from 0 to 1?, because, my prgram is : from pylab import * from scipy import * H=array([[0.0,0.0,0.5,0.0,0.0],[0.0,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0,0.0],[ 0.0,0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0,0.0]]) print H; figure() imshow(H,cmap=cm.gray) well, 0.5 show how white and it's not correct, because the 0.5 is the half the scale the gray thanks
![](https://secure.gravatar.com/avatar/56b215661867f3b4f4a3b28077de66b3.jpg?s=120&d=mm&r=g)
5 Mar
5 Mar
8 p.m.
New subject: [SciPy-user] help about imshow
Jose, 1. Your question would be better addressed on the matplotlib mailing list 2. Try to add the vmin=0 and vmax=1 optional parameters to imshow
imshow(H,cmap=cm.gray,vmin=0,vmax=1) That way, the limits are properly taken into account
5963
Age (days ago)
5963
Last active (days ago)
1 comments
2 participants
participants (2)
-
jose luis Lopez Martinez
-
Pierre GM