william ratcliff wrote:
> Hi!   I have a question about contours and clim within matplotlib.  I 
> load in some files and do some processing and generate a contour plot using:
> 
> 
> cmap=pylab.cm.jet
> mycontour=pylab.contourf(x,y,z,95)#,

You don't really want 95 contour levels, do you?
Instead of using set_clim, set the contour levels you want, and I 
suspect everything will come out OK.  E.g.,

pylab.contourf(x,y,z,pylab.linspace(160, 500, 18))

Eric

> mycontour.set_clim(vmin=160, vmax=500)
> mycbar=pylab.colorbar()
> mycbar.set_clim(vmin=160, vmax=500)
> pylab.xlim((17,19.6))
> pylab.show()
> 
> 
> However, the behavior is rather unexpected for me.  I find that the 
> colorbar has values rather stretched for values above the cutoff 
> specified in clim.  Also, are the values normalized between
> the limits set in clim, or am I loosing a lot of dynamic range?
> 
> 
> Thanks,
> William
> 
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables 
> unlimited royalty-free distribution of the report engine 
> for externally facing server and web deployment. 
> http://p.sf.net/sfu/businessobjects
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to