Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ed3860

Browse files
committed
Deprecate AxisArtist.ZORDER
1 parent 02746fa commit 2ed3860

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
``AxisArtist.ZORDER``
2+
~~~~~~~~~~~~~~~~~~~~~
3+
use ``AxisArtist.zorder`` instead.

lib/mpl_toolkits/axisartist/axis_artist.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,12 @@ class AxisArtist(martist.Artist):
629629
is constant) line, ticks, ticklabels, and axis label.
630630
"""
631631

632-
zorder = ZORDER = 2.5 # ZORDER is a backcompat alias.
632+
zorder = 2.5
633+
634+
@_api.deprecated("3.4")
635+
@_api.classproperty
636+
def ZORDER(cls):
637+
return cls.zorder
633638

634639
@property
635640
def LABELPAD(self):

0 commit comments

Comments
 (0)