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

Skip to content

Commit 9784a3a

Browse files
committed
Un-deprecate 'xloc' and 'yloc'
1 parent 96a37e5 commit 9784a3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎proplot/axes/cartesian.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,6 @@ def _update_locs(
762762
if offsetloc is not None:
763763
axis.set_offset_position(offsetloc)
764764

765-
@warnings._rename_kwargs('0.9', xloc='xspineloc', yloc='yspineloc')
766765
@docstring._snippet_manager
767766
def format(
768767
self, *,
@@ -871,6 +870,8 @@ def format(
871870
# Sensible defaults for spine, tick, tick label, and label locs
872871
# NOTE: Allow tick labels to be present without ticks! User may
873872
# want this sometimes! Same goes for spines!
873+
xspineloc = _not_none(xloc=xloc, xspineloc=xspineloc)
874+
yspineloc = _not_none(yloc=yloc, yspineloc=yspineloc)
874875
xtickloc = _not_none(xtickloc, xspineloc, self._get_loc('x', 'xtick'))
875876
ytickloc = _not_none(ytickloc, yspineloc, self._get_loc('y', 'ytick'))
876877
xspineloc = _not_none(xspineloc, self._get_loc('x', 'axes.spines'))

0 commit comments

Comments
 (0)