File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-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,11 @@ class Artist(object):
71
71
Abstract base class for someone who renders into a
72
72
:class:`FigureCanvas`.
73
73
"""
74
+ @property
75
+ @cbook .deprecated ("3.1" )
76
+ def aname (self ):
77
+ return 'Artist'
74
78
75
- aname = 'Artist'
76
79
zorder = 0
77
80
# order of precedence when bulk setting/updating properties
78
81
# via update. The keys should be property names and the values
Original file line number Diff line number Diff line change @@ -131,7 +131,10 @@ class Axes(_AxesBase):
131
131
"""
132
132
### Labelling, legend and texts
133
133
134
- aname = 'Axes'
134
+ @property
135
+ @cbook .deprecated ("3.1" )
136
+ def aname (self ):
137
+ return 'Axes'
135
138
136
139
def get_title (self , loc = "center" ):
137
140
"""
You can’t perform that action at this time.
0 commit comments