8000 DOC: add a note about linewidth to scatter docs by tacaswell · Pull Request #25414 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
8000

DOC: add a note about linewidth to scatter docs #25414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4478,6 +4478,20 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
The marker size in points**2 (typographic points are 1/72 in.).
Default is ``rcParams['lines.markersize'] ** 2``.

The linewidth and edgecolor can visually interact with the marker
size.

If the linewidth is greater than 0 and the edegecolor is anything
but *'none'*, then the effective size of the marker will be
increased by half the linewidth as the stroke drawn for the edge
will be centered on the edge of the shape.

If the marker size is smaller than the linewidth there will be
visual artifacts.

To eliminate the marker edge either set *linewidth=0* or
*edgecolor='none'*.

c : array-like or list of colors or color, optional
The marker colors. Possible values:

Expand Down
0