2010/8/20 Bruce Ford <br...@clearscienceinc.com>: > I have a grid with values ranging from exactly 0.0 and 100.0. When I > plot this with colorbar, the base of the colorbar is labeled "-0.0". > Is this a default for 0.0...to plot it with as a negative number? Any > workarounds?
How sure are you that the floating point number underneath has really not set the negative bit? Maybe try to .clip() the grid positions before on the numpy level to (0.0, \infty) where 0 arises from a fresh parse of '0.0' by the interpreter, i.e., a "really really zero" fp number. To clip, you may also use grid *= (grid > 0) or similar things of that fashion. I'm not sure if the mistake is implied my your side of the code, but i just hope this helps maybe. The Locator stuff is not soo easy. Friedrich ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users