From 1fa70c69f7d7b42e41d0dea53e9792a33548c4eb Mon Sep 17 00:00:00 2001 From: Talha Irfan Date: Mon, 14 Aug 2023 20:38:30 +0500 Subject: [PATCH 1/2] Replaced list with tuple in pyplot for axes --- lib/matplotlib/pyplot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 415d5c042241..c804adc93cf6 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -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, **kwargs ) -> matplotlib.axes.Axes: """ @@ -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. From afce3038565af3947e9965533345f7e5a3380155 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Wed, 30 Aug 2023 13:28:03 +0200 Subject: [PATCH 2/2] Update lib/matplotlib/pyplot.py --- lib/matplotlib/pyplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index c804adc93cf6..04fdcbc744c9 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -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, **kwargs ) -> matplotlib.axes.Axes: """ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy