File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,6 @@ Support for custom backends that do not provide a ``set_hatch_color`` method is
5
5
deprecated. We suggest that custom backends let their ``GraphicsContext ``
6
6
class inherit from `GraphicsContextBase `, to at least provide stubs for all
7
7
required methods.
8
+
9
+ The fields ``Artist.aname `` and ``Axes.aname `` are deprecated. Please use
10
+ ``isinstance() `` or ``__class__.__name__ `` checks instead.
Original file line number Diff line number Diff line change @@ -71,8 +71,10 @@ class Artist(object):
71
71
Abstract base class for someone who renders into a
72
72
:class:`FigureCanvas`.
73
73
"""
74
+ @cbook .deprecated ("3.1" )
75
+ def aname (self ):
76
+ return 'Artist'
74
77
75
- aname = 'Artist'
76
78
zorder = 0
77
79
# order of precedence when bulk setting/updating properties
78
80
# via update. The keys should be property names and the values
Original file line number Diff line number Diff line change @@ -131,7 +131,9 @@ class Axes(_AxesBase):
131
131
"""
132
132
### Labelling, legend and texts
133
133
134
- aname = 'Axes'
134
+ @cbook .deprecated ("3.1" )
135
+ def aname (self ):
136
+ return 'Axes'
135
137
136
138
def get_title (self , loc = "center" ):
137
139
"""
You can’t perform that action at this time.
0 commit comments