Skip to content

Commit da3abc8

Browse files
committed
update artist.py
1 parent 34aa28e commit da3abc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/artist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ def __init_subclass__(cls):
130130
# Inject custom set() methods into the subclass with signature and
131131
# docstring based on the subclasses' properties.
132132

133+
cls.draw = _prevent_rasterization(cls.draw)
134+
133135
if not hasattr(cls.set, '_autogenerated_signature'):
134136
# Don't overwrite cls.set if the subclass or one of its parents
135137
# has defined a set method set itself.
@@ -143,8 +145,6 @@ def __init_subclass__(cls):
143145
cls.set.__qualname__ = f"{cls.__qualname__}.set"
144146
cls._update_set_signature_and_docstring()
145147

146-
cls.draw = _prevent_rasterization(cls.draw)
147-
148148
_PROPERTIES_EXCLUDED_FROM_SET = [
149149
'navigate_mode', # not a user-facing function
150150
'figure', # changing the figure is such a profound operation

0 commit comments

Comments
 (0)