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

Skip to content

Commit 1fa70c6

Browse files
authored
Replaced list with tuple in pyplot for axes
1 parent 0a6beed commit 1fa70c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ def figlegend(*args, **kwargs) -> Legend:
11341134

11351135
@_docstring.dedent_interpd
11361136
def axes(
1137-
arg: None | tuple[float, float, float, float] = None,
1137+
arg: None | tuple(float, float, float, float) = None,
11381138
**kwargs
11391139
) -> matplotlib.axes.Axes:
11401140
"""
@@ -1153,7 +1153,7 @@ def axes(
11531153
11541154
- *None*: A new full window Axes is added using
11551155
``subplot(**kwargs)``.
1156-
- 4-tuple of floats *rect* = ``[left, bottom, width, height]``.
1156+
- 4-tuple of floats *rect* = ``(left, bottom, width, height)``.
11571157
A new Axes is added with dimensions *rect* in normalized
11581158
(0, 1) units using `~.Figure.add_axes` on the current figure.
11591159

0 commit comments

Comments
 (0)