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

Skip to content

Commit 40d5467

Browse files
anntzerMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR matplotlib#12353: Doc: clarify default parameters in scatter docs
1 parent 9663953 commit 40d5467

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
@@ -4029,7 +4029,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
40294029
The marker size in points**2.
40304030
Default is ``rcParams['lines.markersize'] ** 2``.
40314031
4032-
c : color, sequence, or sequence of color, optional, default: 'b'
4032+
c : color, sequence, or sequence of color, optional
40334033
The marker color. Possible values:
40344034
40354035
- A single color format string.
@@ -4045,10 +4045,18 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
40454045
matching will have precedence in case of a size matching with *x*
40464046
and *y*.
40474047
4048-
marker : `~matplotlib.markers.MarkerStyle`, optional, default: 'o'
4048+
Defaults to ``None``. In that case the marker color is determined
4049+
by the value of ``color``, ``facecolor`` or ``facecolors``. In case
4050+
those are not specified or ``None``, the marker color is determined
4051+
by the next color of the ``Axes``' current "shape and fill" color
4052+
cycle. This cycle defaults to :rc:`axes.prop_cycle`.
4053+
4054+
marker : `~matplotlib.markers.MarkerStyle`, optional
40494055
The marker style. *marker* can be either an instance of the class
40504056
or the text shorthand for a particular marker.
4051-
See `~matplotlib.markers` for more information marker styles.
4057+
Defaults to ``None``, in which case it takes the value of
4058+
:rc:`scatter.marker` = 'o'.
4059+
See `~matplotlib.markers` for more information about marker styles.
40524060
40534061
cmap : `~matplotlib.colors.Colormap`, optional, default: None
40544062
A `.Colormap` instance or registered colormap name. *cmap* is only

0 commit comments

Comments
 (0)
0