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

Skip to content

Commit 9e30337

Browse files
committed
Make most argument to set_*lim keyword only
1 parent f419ba1 commit 9e30337

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
@@ -3569,9 +3569,8 @@ def _validate_converted_limits(self, limit, convert):
35693569
raise ValueError("Axis limits cannot be NaN or Inf")
35703570
return converted_limit
35713571

3572-
@_api.make_keyword_only("3.6", "emit")
3573-
def set_xlim(self, left=None, right=None, emit=True, auto=False,
3574-
*, xmin=None, xmax=None):
3572+
def set_xlim(self, left=None, right=None, *, emit=True, auto=False,
3573+
xmin=None, xmax=None):
35753574
"""
35763575
Set the x-axis view limits.
35773576
@@ -3801,9 +3800,8 @@ def get_ylim(self):
38013800
"""
38023801
return tuple(self.viewLim.intervaly)
38033802

3804-
@_api.make_keyword_only("3.6", "emit")
3805-
def set_ylim(self, bottom=None, top=None, emit=True, auto=False,
3806-
*, ymin=None, ymax=None):
3803+
def set_ylim(self, bottom=None, top=None, *, emit=True, auto=False,
3804+
ymin=None, ymax=None):
38073805
"""
38083806
Set the y-axis view limits.
38093807

lib/matplotlib/projections/polar.py

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

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

0 commit comments

Comments
 (0)