Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da3abc8 commit ab776e5Copy full SHA for ab776e5
1 file changed
lib/matplotlib/artist.py
@@ -20,6 +20,7 @@
20
21
_log = logging.getLogger(__name__)
22
23
+
24
def _prevent_rasterization(draw):
25
# we assume that by default artists are not allowed to rasterize (unless
26
# its draw method is explicitly decorated). If it is being drawn after a
@@ -947,8 +948,8 @@ def set_rasterized(self, rasterized):
947
948
----------
949
rasterized : bool
950
"""
- support_rasterization = getattr(self.draw,
951
- "_supports_rasterization", False)
+ supports_rasterization = getattr(self.draw,
952
+ "_supports_rasterization", False)
953
if (rasterized and not supports_rasterization):
954
_api.warn_external(f"Rasterization of '{self}' will be ignored")
955
0 commit comments