Glen, Funny, I ran into exactly the same problem earlier that week. My guess is that you use numpy, right ? 0.9.8 ? On a 64b machine ?
If that's the case, you should have the same problem with divmod and numpy each time you use float64 as dtype: each element is a float64scalar that divmod doesn't know how to process. Downcasting to float32 does the trick (either by forcing it as dtype, or using a python float(). According to the numpy list, the problem has been corrected in the SVN version. As I didn't want to install the SVN version yet, I found this workaround with matplotlib: in matplotlib/dates.py, change line 155 from remainder = x - ix to remainder = float(x) - ix That's enough to force the conversion float64scalar to float. ------------------------------------------------------------------------- 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