Revision: 4569
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4569&view=rev
Author: mdboom
Date: 2007-12-03 11:16:17 -0800 (Mon, 03 Dec 2007)
Log Message:
-----------
Fix exception when a particular contour doesn't exist.
Modified Paths:
--------------
branches/transforms/lib/matplotlib/axes.py
Modified: branches/transforms/lib/matplotlib/axes.py
===================================================================
--- branches/transforms/lib/matplotlib/axes.py 2007-12-03 19:07:36 UTC (rev
4568)
+++ branches/transforms/lib/matplotlib/axes.py 2007-12-03 19:16:17 UTC (rev
4569)
@@ -1137,7 +1137,8 @@
self._set_artist_props(collection)
collection.set_clip_path(self.axesPatch)
if autolim:
- self.update_datalim(collection.get_datalim(self.transData))
+ if len(collection._paths):
+ self.update_datalim(collection.get_datalim(self.transData))
collection._remove_method = lambda h: self.collections.remove(h)
def add_line(self, line):
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins