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

Skip to content

Commit 6064a2e

Browse files
tacaswellQuLogic
andcommitted
DOC: add a note about linewidth to scatter docs
closes matplotlib#25410 Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent 84e5f02 commit 6064a2e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4478,6 +4478,20 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
44784478
The marker size in points**2 (typographic points are 1/72 in.).
44794479
Default is ``rcParams['lines.markersize'] ** 2``.
44804480
4481+
The linewidth and edgecolor can visually interact with the marker
4482+
size.
4483+
4484+
If the linewidth is greater than 0 and the edegecolor is anything
4485+
but *'none'*, then the effective size of the marker will be
4486+
increased by half the linewidth as the stroke drawn for the edge
4487+
will be centered on the edge of the shape.
4488+
4489+
If the marker size is smaller than the linewidth there will be
4490+
visual artifacts.
4491+
4492+
To eliminate the marker edge either set *linewidth=0* or
4493+
*edgecolor='none'*.
4494+
44814495
c : array-like or list of colors or color, optional
44824496
The marker colors. Possible values:
44834497

0 commit comments

Comments
 (0)