On Tue, Dec 2, 2008 at 11:27 AM, Nils Wagner
<[EMAIL PROTECTED]>wrote:

> Thank you very much !
> It would be nice to have that information in the docstring
>

Done.


> The next inquiry is related to xticks.
> I have added
>
> xticks(linspace(0,2*pi,24,endpoint=False))
>
> The difference between consecutive xticks is varying between 14 and 16
> degrees.
>
> For what reason ?


Looks like roundoff error.   For instance:

linspace(0, 2*pi, 24)[7] * 180. / pi
104.999999999999

If you format that with '%d', it becomes 104, not 105.

Is there an accepted way of doing this rounding in matplotlib that doesn't
round in odd cases?

Ryan

-- 
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to