MaxNLocator seems to be still not good enough

A simple plot command, which worked in 0.86, fails in 087.2:

import pylab
pylab.plot([0.0, 1.0], [0.0, 0.0])

A traceback indicates that it apparently has to do with MaxNLocator
introduced in 0.87.

There was a thread on this list 2 weeks ago started by
daigos@...1043... concerning similar issue, but in that case y-values
were slightly diffrent. Setting pylab.ylim to something like (-1,1)
prior to calling plot(), as John Hunter suggested in that thread, does
not quite work for me in this case.

Also, the changelog to 0.87.2 mentiones that same thread and claims a
fix that "adjusts vmin and vmax if they are nearly the same, not just
if they are equal". In my simple case, they are equal, but still i
figure that it is not being treated gracefully enough.

Thanks,
Sergey

Sergey,

Your example works for me with svn.

Eric

Sergey Dolgov wrote:

ยทยทยท

A simple plot command, which worked in 0.86, fails in 087.2:

import pylab
pylab.plot([0.0, 1.0], [0.0, 0.0])

A traceback indicates that it apparently has to do with MaxNLocator
introduced in 0.87.

There was a thread on this list 2 weeks ago started by
daigos@...1043... concerning similar issue, but in that case y-values
were slightly diffrent. Setting pylab.ylim to something like (-1,1)
prior to calling plot(), as John Hunter suggested in that thread, does
not quite work for me in this case.

Also, the changelog to 0.87.2 mentiones that same thread and claims a
fix that "adjusts vmin and vmax if they are nearly the same, not just
if they are equal". In my simple case, they are equal, but still i
figure that it is not being treated gracefully enough.

Thanks,
Sergey

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users