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

Skip to content

Commit 7e5cc66

Browse files
committed
TYP: Fix types of errorbar *lims arguments
1 parent e292197 commit 7e5cc66

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3436,7 +3436,7 @@ def errorbar(self, x, y, yerr=None, xerr=None,
34363436
If True, will plot the errorbars above the plot
34373437
symbols. Default is below.
34383438
3439-
lolims, uplims, xlolims, xuplims : bool, default: False
3439+
lolims, uplims, xlolims, xuplims : bool or array-like, default: False
34403440
These arguments can be used to indicate that a value gives only
34413441
upper/lower limits. In that case a caret symbol is used to
34423442
indicate this. *lims*-arguments may be scalars, or array-likes of

lib/matplotlib/axes/_axes.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,10 @@ class Axes(_AxesBase):
332332
elinewidth: float | None = ...,
333333
capsize: float | None = ...,
334334
barsabove: bool = ...,
335-
lolims: bool = ...,
336-
uplims: bool = ...,
337-
xlolims: bool = ...,
338-
xuplims: bool = ...,
335+
lolims: bool | ArrayLike = ...,
336+
uplims: bool | ArrayLike = ...,
337+
xlolims: bool | ArrayLike = ...,
338+
xuplims: bool | ArrayLike = ...,
339339
errorevery: int | tuple[int, int] = ...,
340340
capthick: float | None = ...,
341341
*,

lib/matplotlib/pyplot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2961,10 +2961,10 @@ def errorbar(
29612961
elinewidth: float | None = None,
29622962
capsize: float | None = None,
29632963
barsabove: bool = False,
2964-
lolims: bool = False,
2965-
uplims: bool = False,
2966-
xlolims: bool = False,
2967-
xuplims: bool = False,
2964+
lolims: bool | ArrayLike = False,
2965+
uplims: bool | ArrayLike = False,
2966+
xlolims: bool | ArrayLike = False,
2967+
xuplims: bool | ArrayLike = False,
29682968
errorevery: int | tuple[int, int] = 1,
29692969
capthick: float | None = None,
29702970
*,

0 commit comments

Comments
 (0)