Brian Blais wrote: > > plot([1],[0],'o') > > I get a floating point/divide by zero error: > > > /usr/lib/python2.4/site-packages/matplotlib/ticker.py in scale_range(vmin, > vmax, n, > threshold) > 731 dv = abs(vmax - vmin) > 732 meanv = 0.5*(vmax+vmin) > --> 733 var = dv/max(abs(vmin), abs(vmax)) > 734 if var < 1e-12: > 735 return 1.0, 0.0 > > ZeroDivisionError: float division > > > Is there a fix for this? >
You have to upgrade. In [39]: plot([1],[0],'o') Out[39]: [<matplotlib.lines.Line2D instance at 0xa38ac80c>] In [40]: matplotlib.__version__ Out[40]: '0.87.7' In [41]: matplotlib.__revision__ Out[41]: '$Revision: 2835 $' -- cheers, steve Random number generation is the art of producing pure gibberish as quickly as possible. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users