Revision: 5063
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5063&view=rev
Author: efiring
Date: 2008-04-23 00:21:03 -0700 (Wed, 23 Apr 2008)
Log Message:
-----------
Update dataLim only if some valid data are available.
This change means that plot([nan]) will generate an
empty plot instead of raising an obscure exception.
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/transforms.py
Modified: trunk/matplotlib/lib/matplotlib/transforms.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/transforms.py 2008-04-22 18:55:36 UTC
(rev 5062)
+++ trunk/matplotlib/lib/matplotlib/transforms.py 2008-04-23 07:21:03 UTC
(rev 5063)
@@ -693,6 +693,9 @@
if len(xy) == 0:
return
+ xym = ma.masked_invalid(xy)
+ if (xym.count(axis=1)!=2).all():
+ return
points, minpos, changed = update_path_extents(
Path(xy), None, self._points, self._minpos, ignore)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins