8000 Backport PR #12353: Doc: clarify default parameters in scatter docs · matplotlib/matplotlib@593bd9f · GitHub
[go: up one dir, main page]

Skip to content

Commit 593bd9f

Browse files
anntzerMeeseeksDev[bot]
authored andcommitted
Backport PR #12353: Doc: clarify default parameters in scatter docs
1 parent 80ad3f2 commit 593bd9f

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

lib/matplotlib/axes/_axes.py

Lines 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