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

Skip to content

Commit 5ce21e3

Browse files
authored
Merge pull request #25414 from tacaswell/doc/scatter_lw_limits
DOC: add a note about linewidth to scatter docs
2 parents a844eca + cb058e2 commit 5ce21e3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4455,6 +4455,18 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
44554455
The marker size in points**2 (typographic points are 1/72 in.).
44564456
Default is ``rcParams['lines.markersize'] ** 2``.
44574457
4458+
The linewidth and edgecolor can visually interact with the marker
4459+
size, and can lead to artifacts if the marker size is smaller than
4460+
the linewidth.
4461+
4462+
If the linewidth is greater than 0 and the edgecolor is anything
4463+
but *'none'*, then the effective size of the marker will be
4464+
increased by half the linewidth because the stroke will be centered
4465+
on the edge of the shape.
4466+
4467+
To eliminate the marker edge either set *linewidth=0* or
4468+
*edgecolor='none'*.
4469+
44584470
c : array-like or list of colors or color, optional
44594471
The marker colors. Possible values:
44604472

0 commit comments

Comments
 (0)