Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Add ArrayLike to scatter c arg type hint
Closes #26936
  • Loading branch information
ksunden committed Sep 27, 2023
commit 6dadeca73c5d5a60999e68351018fa3928db55a1
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_axes.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ class Axes(_AxesBase):
x: float | ArrayLike,
y: float | ArrayLike,
s: float | ArrayLike | None = ...,
c: Sequence[ColorType] | ColorType | None = ...,
c: ArrayLike | Sequence[ColorType] | ColorType | None = ...,
marker: MarkerType | None = ...,
cmap: str | Colormap | None = ...,
norm: str | Normalize | None = ...,
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3670,7 +3670,7 @@ def scatter(
x: float | ArrayLike,
y: float | ArrayLike,
s: float | ArrayLike | None = None,
c: Sequence[ColorType] | ColorType | None = None,
c: ArrayLike | Sequence[ColorType] | ColorType | None = None,
marker: MarkerType | None = None,
cmap: str | Colormap | None = None,
norm: str | Normalize | None = None,
Expand Down