Revision: 4060
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4060&view=rev
Author:   mdboom
Date:     2007-10-29 11:37:17 -0700 (Mon, 29 Oct 2007)

Log Message:
-----------
Fix clip path in polar plot legend.

Modified Paths:
--------------
    branches/transforms/lib/matplotlib/artist.py
    branches/transforms/lib/matplotlib/backend_bases.py

Modified: branches/transforms/lib/matplotlib/artist.py
===================================================================
--- branches/transforms/lib/matplotlib/artist.py        2007-10-29 18:23:24 UTC 
(rev 4059)
+++ branches/transforms/lib/matplotlib/artist.py        2007-10-29 18:37:17 UTC 
(rev 4060)
@@ -309,6 +309,7 @@
         if transform is None:
             if isinstance(path, Rectangle):
                 self.clipbox = TransformedBbox(Bbox.unit(), 
path.get_transform())
+                self._clippath = None
                 success = True
             elif isinstance(path, Patch):
                 self._clippath = TransformedPath(

Modified: branches/transforms/lib/matplotlib/backend_bases.py
===================================================================
--- branches/transforms/lib/matplotlib/backend_bases.py 2007-10-29 18:23:24 UTC 
(rev 4059)
+++ branches/transforms/lib/matplotlib/backend_bases.py 2007-10-29 18:37:17 UTC 
(rev 4060)
@@ -326,13 +326,15 @@
 
     def get_clip_rectangle(self):
         """
-        Return the clip rectangle as (left, bottom, width, height)
+        Return the clip rectangle as a Bbox instance
         """
         return self._cliprect
 
     def get_clip_path(self):
         """
-        Return the clip path
+        Return the clip path in the form (path, transform), where path
+        is a path.Path instance, and transform as an affine transform
+        to apply to the path before clipping.
         """
         if self._clippath is not None:
             return self._clippath.get_transformed_path_and_affine()


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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to