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 684861b

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

File tree

Expand file treeCollapse file tree

1 file changed

+17
-9
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+17
-9
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+17-9Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.