Jae-Joon Lee wrote: > On Wed, Jan 20, 2010 at 12:12 PM, Mario Mech <m...@meteo.uni-koeln.de> wrote: >> the smallest value (0.0) is labeled with "-0.0". I just want to get rid of >> the minus sign. >> > > This is because the actual value is "-9.00000000e-06" (this inherits > from the levels of contour).
The reason for this fudge in contour is that contourf fills lower < z <= upper for each consecutive pair of contour levels. When the minimum value of z coincides with the lowest level, then regions with that minimum are left blank; so the lowest level is adjusted downward slightly, making the lowest contour interval include the minimum value. The fudge could be made optional via a kwarg, e.g., include_minimum=True (default) or False (to defeat the fudge). This would not help Mario, though, assuming he is happy with the present contouring, and simply wants sane labeling of the 0-tick. For that, a Formatter adjustment is the simplest solution. Eric ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users