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

Skip to content

Commit efbc555

Browse files
authored
Merge pull request #16297 from jklymak/doc-rephrase-scatter-vmin
DOC: fix description of vmin/vmax in scatter
2 parents d14ad5f + e952072 commit efbc555

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4323,14 +4323,15 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
43234323
used if *c* is an array of floats.
43244324
43254325
norm : `~matplotlib.colors.Normalize`, default: None
4326-
A `.Normalize` instance is used to scale luminance data to 0, 1.
4327-
*norm* is only used if *c* is an array of floats. If *None*, use
4328-
the default `.colors.Normalize`.
4326+
If *c* is an array of floats, *norm* is used to scale the color
4327+
data, *c*, in the range 0 to 1, in order to map into the colormap
4328+
*cmap*.
4329+
If *None*, use the default `.colors.Normalize`.
43294330
43304331
vmin, vmax : scalar, default: None
4331-
*vmin* and *vmax* are used in conjunction with *norm* to normalize
4332-
luminance data. If None, the respective min and max of the color
4333-
array is used.
4332+
*vmin* and *vmax* are used in conjunction with the default norm to
4333+
map the color array *c* to the colormap *cmap*. If None, the
4334+
respective min and max of the color array is used.
43344335
It is deprecated to use *vmin*/*vmax* when *norm* is given.
43354336
43364337
alpha : scalar, default: None

0 commit comments

Comments
 (0)