Skip to content

Commit ab776e5

Browse files
committed
more minor fix
1 parent da3abc8 commit ab776e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/artist.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
_log = logging.getLogger(__name__)
2222

23+
2324
def _prevent_rasterization(draw):
2425
# we assume that by default artists are not allowed to rasterize (unless
2526
# its draw method is explicitly decorated). If it is being drawn after a
@@ -947,8 +948,8 @@ def set_rasterized(self, rasterized):
947948
----------
948949
rasterized : bool
949950
"""
950-
support_rasterization = getattr(self.draw,
951-
"_supports_rasterization", False)
951+
supports_rasterization = getattr(self.draw,
952+
"_supports_rasterization", False)
952953
if (rasterized and not supports_rasterization):
953954
_api.warn_external(f"Rasterization of '{self}' will be ignored")
954955

0 commit comments

Comments
 (0)