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

Skip to content

[Doc] Add ACCEPTS for some Axes set methods #26641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down