Skip to content

Commit 98866a2

Browse files
committed
Make most argument to set_*lim keyword only
1 parent 5596329 commit 98866a2

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3565,9 +3565,8 @@ def _validate_converted_limits(self, limit, convert):
35653565
raise ValueError("Axis limits cannot be NaN or Inf")
35663566
return converted_limit
35673567

3568-
@_api.make_keyword_only("3.6", "emit")
3569-
def set_xlim(self, left=None, right=None, emit=True, auto=False,
3570-
*, xmin=None, xmax=None):
3568+
def set_xlim(self, left=None, right=None, *, emit=True, auto=False,
3569+
xmin=None, xmax=None):
35713570
"""
35723571
Set the x-axis view limits.
35733572
@@ -3797,9 +3796,8 @@ def get_ylim(self):
37973796
"""
37983797
return tuple(self.viewLim.intervaly)
37993798

3800-
@_api.make_keyword_only("3.6", "emit")
3801-
def set_ylim(self, bottom=None, top=None, emit=True, auto=False,
3802-
*, ymin=None, ymax=None):
3799+
def set_ylim(self, bottom=None, top=None, *, emit=True, auto=False,
3800+
ymin=None, ymax=None):
38033801
"""
38043802
Set the y-axis view limits.
38053803

lib/matplotlib/projections/polar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,8 +1228,8 @@ def get_rorigin(self):
12281228
def get_rsign(self):
12291229
return np.sign(self._originViewLim.y1 - self._originViewLim.y0)
12301230

1231-
@_api.make_keyword_only("3.6", "emit")
1232-
def set_rlim(self, bottom=None, top=None, emit=True, auto=False, **kwargs):
1231+
def set_rlim(self, bottom=None, top=None, *,
1232+
emit=True, auto=False, **kwargs):
12331233
"""
12341234
Set the radial axis view limits.
12351235

0 commit comments

Comments
 (0)