8000 Merge pull request #12353 from ImportanceOfBeingErnest/doc-scatterdef… · matplotlib/matplotlib@d5a4eda · GitHub
[go: up one dir, main page]

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 d5a4eda

Browse files
authored
Merge pull request #12353 from ImportanceOfBeingErnest/doc-scatterdefaults
Doc: clarify default parameters in scatter docs
2 parents 46ba49a + eabade3 commit d5a4eda

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
@@ -4024,7 +4024,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
40244024
The marker size in points**2.
40254025
Default is ``rcParams['lines.markersize'] ** 2``.
40264026
4027-
c : color, sequence, or sequence of color, optional, default: 'b'
4027+
c : color, sequence, or sequence of color, optional
40284028
The marker color. Possible values:
40294029
40304030
- A single color format string.
@@ -4040,10 +4040,18 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
40404040
matching will have precedence in case of a size matching with *x*
40414041
and *y*.
40424042
4043-
marker : `~matplotlib.markers.MarkerStyle`, optional, default: 'o'
4043+
Defaults to ``None``. In that case the marker color is determined
4044+
by the value of ``color``, ``facecolor`` or ``facecolors``. In case
4045+
those are not specified or ``None``, the marker color is determined
4046+
by the next color of the ``Axes``' current "shape and fill" color
4047+
cycle. This cycle defaults to :rc:`axes.prop_cycle`.
4048+
4049+
marker : `~matplotlib.markers.MarkerStyle`, optional
40444050
The marker style. *marker* can be either an instance of the class
40454051
or the text shorthand for a particular marker.
4046-
See `~matplotlib.markers` for more information marker styles.
4052+
Defaults to ``None``, in which case it takes the value of
4053+
:rc:`scatter.marker` = 'o'.
4054+
See `~matplotlib.markers` for more information about marker styles.
40474055
40484056
cmap : `~matplotlib.colors.Colormap`, optional, default: None
40494057
A `.Colormap` instance or registered colormap name. *cmap* is only

0 commit comments

Comments
 (0)
0