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

Skip to content

Commit 472aef6

Browse files
committed
Add stubs and update what's new entry link
1 parent 69d9b36 commit 472aef6

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
`markersize` and `markerscale` added to scatter
1+
``markersize`` and ``markerscale`` added to scatter
22
-----------------------------------------------
3-
`markersize` is new alias for `s` in scatter that can be used to set the size of
3+
``markersize`` is new alias for ``s`` in scatter that can be used to set the size of
44
the markers. The marker sizes can now also be set using a linear scale using the
5-
`markerscale` parameter.
5+
``markerscale`` parameter.

lib/matplotlib/axes/_axes.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ class Axes(_AxesBase):
392392
*,
393393
edgecolors: Literal["face", "none"] | ColorType | Sequence[ColorType] | None = ...,
394394
plotnonfinite: bool = ...,
395+
markerscale: int = ...,
395396
**kwargs
396397
) -> PathCollection: ...
397398
def hexbin(

lib/matplotlib/collections.pyi

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,18 @@ class Collection(artist.Artist, cm.ScalarMappable):
7070

7171
class _CollectionWithSizes(Collection):
7272
def get_sizes(self) -> np.ndarray: ...
73-
def set_sizes(self, sizes: ArrayLike | None, dpi: float = ...) -> None: ...
73+
def set_sizes(
74+
self, sizes: ArrayLike | None, dpi: float = ..., markerscale: int = ...
75+
) -> None: ...
76+
def get_markerscale(self) -> int: ...
7477

7578
class PathCollection(_CollectionWithSizes):
7679
def __init__(
77-
self, paths: Sequence[Path], sizes: ArrayLike | None = ..., **kwargs
80+
self,
81+
paths: Sequence[Path],
82+
sizes: ArrayLike | None = ...,
83+
markerscale: int = ...,
84+
**kwargs
7885
) -> None: ...
7986
def set_paths(self, paths: Sequence[Path]) -> None: ...
8087
def get_paths(self) -> Sequence[Path]: ...

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3586,7 +3586,7 @@ def scatter(
35863586
*,
35873587
edgecolors: Literal["face", "none"] | ColorType | Sequence[ColorType] | None = None,
35883588
plotnonfinite: bool = False,
3589-
markerscale=2,
3589+
markerscale: int = 2,
35903590
data=None,
35913591
**kwargs,
35923592
) -> PathCollection:

0 commit comments

Comments
 (0)