|
From: <md...@us...> - 2007-07-26 18:40:39
|
Revision: 3619
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3619&view=rev
Author: mdboom
Date: 2007-07-26 11:40:36 -0700 (Thu, 26 Jul 2007)
Log Message:
-----------
Fix bug in pdf backend (numpy.inf not numpy.infinity)
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py 2007-07-26 14:47:27 UTC (rev 3618)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_pdf.py 2007-07-26 18:40:36 UTC (rev 3619)
@@ -112,7 +112,7 @@
# need to use %f with some precision. Perhaps the precision
# should adapt to the magnitude of the number?
elif isinstance(obj, float):
- if npy.isnan(obj) or obj in (-npy.infinity, npy.infinity):
+ if npy.isnan(obj) or obj in (-npy.inf, npy.inf):
raise ValueError, "Can only output finite numbers in PDF"
r = "%.10f" % obj
return r.rstrip('0').rstrip('.')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|