|
From: <as...@us...> - 2009-10-11 18:54:33
|
Revision: 7866
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7866&view=rev
Author: astraw
Date: 2009-10-11 18:54:22 +0000 (Sun, 11 Oct 2009)
Log Message:
-----------
allow already transformed clip path in artist set_clip_path()
Modified Paths:
--------------
branches/v0_99_maint/lib/matplotlib/artist.py
Modified: branches/v0_99_maint/lib/matplotlib/artist.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/artist.py 2009-10-11 02:55:42 UTC (rev 7865)
+++ branches/v0_99_maint/lib/matplotlib/artist.py 2009-10-11 18:54:22 UTC (rev 7866)
@@ -484,6 +484,9 @@
elif isinstance(path, Path):
self._clippath = TransformedPath(path, transform)
success = True
+ elif isinstance(path, TransformedPath):
+ self._clippath = path
+ success = True
if not success:
print type(path), type(transform)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|