Skip to content

Commit 7bf0c52

Browse files
leejjoontacaswell
andauthored
Update lib/matplotlib/artist.py
Co-authored-by: Thomas A Caswell <[email protected]>
1 parent fa58bde commit 7bf0c52

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/artist.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,8 +949,7 @@ def set_rasterized(self, rasterized):
949949
"""
950950
support_rasterization = getattr(self.draw,
951951
"_supports_rasterization", False)
952-
if (rasterized and
953-
not getattr(self.draw, "_supports_rasterization", False)):
952+
if (rasterized and not supports_rasterization):
954953
_api.warn_external(f"Rasterization of '{self}' will be ignored")
955954

956955
self._rasterized = rasterized

0 commit comments

Comments
 (0)