Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf6b146

Browse files
committed
ENH : allow rasterization on Container.draw
1 parent 266438d commit bf6b146

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/container.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
unicode_literals)
33

44
import six
5-
from matplotlib.artist import Artist
5+
from matplotlib.artist import Artist, allow_rasterization
66
import matplotlib.cbook as cbook
77

88

@@ -51,6 +51,7 @@ def inner(*args, **kwargs):
5151
else:
5252
return super(Container, self).__getattribute__(key)
5353

54+
@allow_rasterization
5455
def draw(self, renderer, *args, **kwargs):
5556
# just broadcast the draw down to children
5657
for a in self:

0 commit comments

Comments
 (0)