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

Skip to content

Commit 0ef2cef

Browse files
committed
Deprecate ambiguous keyword args 'xloc' and 'yloc'
1 parent 4895952 commit 0ef2cef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎proplot/axes/cartesian.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ def _update_locs(self, x, *, tickloc=None, ticklabelloc=None, labelloc=None):
741741
if labelloc is not None:
742742
getattr(self, x + 'axis').set_label_position(labelloc)
743743

744+
@warnings._rename_kwargs('0.9', xloc='xspineloc', yloc='yspineloc')
744745
@docstring._snippet_manager
745746
def format(
746747
self, *,
@@ -848,8 +849,6 @@ def format(
848849
# Sensible defaults for spine, tick, tick label, and label locs
849850
# NOTE: Allow tick labels to be present without ticks! User may
850851
# want this sometimes! Same goes for spines!
851-
xspineloc = _not_none(xloc=xloc, xspineloc=xspineloc)
852-
yspineloc = _not_none(yloc=yloc, yspineloc=yspineloc)
853852
xtickloc = _not_none(xtickloc, xspineloc, self._get_loc('x', 'xtick'))
854853
ytickloc = _not_none(ytickloc, yspineloc, self._get_loc('y', 'ytick'))
855854
xspineloc = _not_none(xspineloc, self._get_loc('x', 'axes.spines'))

0 commit comments

Comments
 (0)