Skip to content

Commit ea46347

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR #26937: Add ArrayLike to scatter c arg type hint
1 parent 7764c49 commit ea46347

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ class Axes(_AxesBase):
402402
x: float | ArrayLike,
403403
y: float | ArrayLike,
404404
s: float | ArrayLike | None = ...,
405-
c: Sequence[ColorType] | ColorType | None = ...,
405+
c: ArrayLike | Sequence[ColorType] | ColorType | None = ...,
406406
marker: MarkerType | None = ...,
407407
cmap: str | Colormap | None = ...,
408408
norm: str | Normalize | None = ...,

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3670,7 +3670,7 @@ def scatter(
36703670
x: float | ArrayLike,
36713671
y: float | ArrayLike,
36723672
s: float | ArrayLike | None = None,
3673-
c: Sequence[ColorType] | ColorType | None = None,
3673+
c: ArrayLike | Sequence[ColorType] | ColorType | None = None,
36743674
marker: MarkerType | None = None,
36753675
cmap: str | Colormap | None = None,
36763676
norm: str | Normalize | None = None,

0 commit comments

Comments
 (0)