Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d7efce4

Browse filesBrowse files
authored
Merge pull request #12381 from meeseeksmachine/auto-backport-of-pr-12353-on-v3.0.x
Backport PR #12353 on branch v3.0.x (Doc: clarify default parameters in scatter docs)
2 parents e3d8d01 + 593bd9f commit d7efce4
Copy full SHA for d7efce4

File tree

Expand file treeCollapse file tree

1 file changed

+11
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-3
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+11-3Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4027,7 +4027,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
40274027
The marker size in points**2.
40284028
Default is ``rcParams['lines.markersize'] ** 2``.
40294029
4030-
c : color, sequence, or sequence of color, optional, default: 'b'
4030+
c : color, sequence, or sequence of color, optional
40314031
The marker color. Possible values:
40324032
40334033
- A single color format string.
@@ -4043,10 +4043,18 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
40434043
matching will have precedence in case of a size matching with *x*
40444044
and *y*.
40454045
4046-
marker : `~matplotlib.markers.MarkerStyle`, optional, default: 'o'
4046+
Defaults to ``None``. In that case the marker color is determined
4047+
by the value of ``color``, ``facecolor`` or ``facecolors``. In case
4048+
those are not specified or ``None``, the marker color is determined
4049+
by the next color of the ``Axes``' current "shape and fill" color
4050+
cycle. This cycle defaults to :rc:`axes.prop_cycle`.
4051+
4052+
marker : `~matplotlib.markers.MarkerStyle`, optional
40474053
The marker style. *marker* can be either an instance of the class
40484054
or the text shorthand for a particular marker.
4049-
See `~matplotlib.markers` for more information marker styles.
4055+
Defaults to ``None``, in which case it takes the value of
4056+
:rc:`scatter.marker` = 'o'.
4057+
See `~matplotlib.markers` for more information about marker styles.
40504058
40514059
cmap : `~matplotlib.colors.Colormap`, optional, default: None
40524060
A `.Colormap` instance or registered colormap name. *cmap* is only

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.