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

Skip to content
Merged
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions lib/matplotlib/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ def figlegend(*args, **kwargs) -> Legend:

@_docstring.dedent_interpd
def axes(
arg: None | tuple[float, float, float, float] = None,
arg: None | tuple(float, float, float, float) = None,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These need to be square brackets, that is type hinting syntax, which does not change because it's a tuple

Copy link
Copy Markdown
Member

@timhoffm timhoffm Aug 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took the liberty of reverting this via an additional commit in the GitHub UI. @devs Please squash-merge.

Comment thread
timhoffm marked this conversation as resolved.
Outdated
**kwargs
) -> matplotlib.axes.Axes:
"""
Expand All @@ -1153,7 +1153,7 @@ def axes(

- *None*: A new full window Axes is added using
``subplot(**kwargs)``.
- 4-tuple of floats *rect* = ``[left, bottom, width, height]``.
- 4-tuple of floats *rect* = ``(left, bottom, width, height)``.
A new Axes is added with dimensions *rect* in normalized
(0, 1) units using `~.Figure.add_axes` on the current figure.

Expand Down