Revision: 6856
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6856&view=rev
Author:   jdh2358
Date:     2009-01-30 16:09:39 +0000 (Fri, 30 Jan 2009)

Log Message:
-----------
conditionally set default clippath

Modified Paths:
--------------
    branches/v0_98_5_maint/lib/matplotlib/axes.py

Modified: branches/v0_98_5_maint/lib/matplotlib/axes.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/axes.py       2009-01-29 21:44:10 UTC 
(rev 6855)
+++ branches/v0_98_5_maint/lib/matplotlib/axes.py       2009-01-30 16:09:39 UTC 
(rev 6856)
@@ -1306,7 +1306,9 @@
             collection.set_label('collection%d'%len(self.collections))
         self.collections.append(collection)
         self._set_artist_props(collection)
-        collection.set_clip_path(self.patch)
+
+        if collection.get_clip_path() is None:
+            collection.set_clip_path(self.patch)
         if autolim:
             if collection._paths and len(collection._paths):
                 self.update_datalim(collection.get_datalim(self.transData))
@@ -1319,7 +1321,8 @@
         lines
         '''
         self._set_artist_props(line)
-        line.set_clip_path(self.patch)
+        if line.get_clip_path() is None:
+            line.set_clip_path(self.patch)
 
         self._update_line_limits(line)
         if not line.get_label():
@@ -1344,7 +1347,8 @@
         """
 
         self._set_artist_props(p)
-        p.set_clip_path(self.patch)
+        if p.get_clip_path() is None:
+            p.set_clip_path(self.patch)
         self._update_patch_limits(p)
         self.patches.append(p)
         p._remove_method = lambda h: self.patches.remove(h)


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:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to