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
Merged
Changes from all commits
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
12 changes: 12 additions & 0 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4478,6 +4478,18 @@ 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, and can lead to artifacts if the marker size is smaller than
the linewidth.

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

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