|
From: <ef...@us...> - 2010-06-05 04:19:16
|
Revision: 8381
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8381&view=rev
Author: efiring
Date: 2010-06-05 04:19:10 +0000 (Sat, 05 Jun 2010)
Log Message:
-----------
collections: add @allow_rasterization to draw methods.
Draw methods need the decorator even if they call a decorated
draw method, because the decorator flags the method with the
_supports_rasterization attribute.
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/collections.py
Modified: trunk/matplotlib/lib/matplotlib/collections.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/collections.py 2010-06-04 22:06:07 UTC (rev 8380)
+++ trunk/matplotlib/lib/matplotlib/collections.py 2010-06-05 04:19:10 UTC (rev 8381)
@@ -596,6 +596,7 @@
set_paths = set_verts
+ @allow_rasterization
def draw(self, renderer):
if self._sizes is not None:
self._transforms = [
@@ -904,6 +905,7 @@
"return sizes of circles"
return self._sizes
+ @allow_rasterization
def draw(self, renderer):
# sizes is the area of the circle circumscribing the polygon
# in points^2
@@ -991,7 +993,7 @@
m[:2, 2:] = 0
self.set_transform(_affine(m))
-
+ @allow_rasterization
def draw(self, renderer):
self._set_transforms()
Collection.draw(self, renderer)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|