From: Martinho MA <mma@ua...>  20071121 16:34:58

Hello, I have a contour with a clim smaller than the limits of my data... and because of this there is an error when I try to add a colorbar. Can someone help? Thanks MMA eg: x=arange(20) y=arange(30) x,y=meshgrid(x,y) v=sqrt(x+y) # max=6.928, min=0.0 # next is ok figure() contour(x,y,v) clim(0,7) colorbar() # next gives the error: "ValueError: levels are outside colorbar range" figure() contour(x,y,v) clim(2,6) colorbar() 