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

Skip to content

Commit 684861b

Browse files
authored
Merge pull request matplotlib#7096 from NelleV/7083_doc_scatter_vs_plot
[MRG] DOC refer to plot in the scatter plot doc
2 parents 41aeffd + e6e1e56 commit 684861b

1 file changed

Lines changed: 17 additions & 9 deletions

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3893,17 +3893,25 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
38933893
----------------
38943894
kwargs : `~matplotlib.collections.Collection` properties
38953895
3896+
See Also
3897+
--------
3898+
plot : to plot scatter plots when markers are identical in size and
3899+
color
3900+
38963901
Notes
3897-
------
3898-
Any or all of `x`, `y`, `s`, and `c` may be masked arrays, in
3899-
which case all masks will be combined and only unmasked points
3900-
will be plotted.
3902+
-----
3903+
3904+
* The `plot` function will be faster for scatterplots where markers
3905+
don't vary in size or color.
3906+
3907+
* Any or all of `x`, `y`, `s`, and `c` may be masked arrays, in which
3908+
case all masks will be combined and only unmasked points will be
3909+
plotted.
39013910
3902-
Fundamentally, scatter works with 1-D arrays; `x`, `y`, `s`,
3903-
and `c` may be input as 2-D arrays, but within scatter
3904-
they will be flattened. The exception is `c`, which
3905-
will be flattened only if its size matches the size of `x`
3906-
and `y`.
3911+
Fundamentally, scatter works with 1-D arrays; `x`, `y`, `s`, and `c`
3912+
may be input as 2-D arrays, but within scatter they will be
3913+
flattened. The exception is `c`, which will be flattened only if its
3914+
size matches the size of `x` and `y`.
39073915
39083916
Examples
39093917
--------

0 commit comments

Comments
 (0)