From 319bb03de1f686b31e7131749bc0f600d0494b02 Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Wed, 30 Aug 2023 13:17:23 +0200 Subject: [PATCH] [Doc] Add ACCEPTS for some Axes set methods --- lib/matplotlib/axes/_base.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index e000eab92d62..d5114d595ad5 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -1554,10 +1554,12 @@ def set_prop_cycle(self, *args, **kwargs): Parameters ---------- - cycler : Cycler + cycler : `~cycler.Cycler` Set the given Cycler. *None* resets to the cycle defined by the current style. + .. ACCEPTS: `~cycler.Cycler` + label : str The property key. Must be a valid `.Artist` property. For example, 'color' or 'linestyle'. Aliases are allowed, @@ -3553,6 +3555,8 @@ def set_xbound(self, lower=None, upper=None): The lower and upper bounds. If *None*, the respective axis bound is not modified. + .. ACCEPTS: (lower: float, upper: float) + See Also -------- get_xbound @@ -3626,7 +3630,7 @@ def set_xlim(self, left=None, right=None, *, emit=True, auto=False, (*left*, *right*) as the first positional argument (or as the *left* keyword argument). - .. ACCEPTS: (bottom: float, top: float) + .. ACCEPTS: (left: float, right: float) right : float, optional The right xlim in data coordinates. Passing *None* leaves the @@ -3802,6 +3806,8 @@ def set_ybound(self, lower=None, upper=None): The lower and upper bounds. If *None*, the respective axis bound is not modified. + .. ACCEPTS: (lower: float, upper: float) + See Also -------- get_ybound