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
DOC: fix description of vmin/vmax in scatter #16297
Conversation
lib/matplotlib/axes/_axes.py
Outdated
*norm* is only used if *c* is an array of floats. If *None*, use | ||
the default `.colors.Normalize`. | ||
If *c* is an array of floats, *norm* is used to scale the color | ||
data, *c*, from 0 to 1, into order to map into the colormap *cmap*. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... to scale the color data, c, to the range from 0 to 1, in order to...
ef693bb
to
a5872c9
Compare
lib/matplotlib/axes/_axes.py
Outdated
luminance data. If None, the respective min and max of the color | ||
array is used. | ||
*vmin* and *vmax* are used in conjunction with the default norm to | ||
map the color array (*c) to the colormap (*cmap*). If None, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(*c*)
instead of (*c)
a5872c9
to
63cbb60
Compare
Ooops, sorry about that. Managed to push an empty branch... |
lib/matplotlib/axes/_axes.py
Outdated
luminance data. If None, the respective min and max of the color | ||
array is used. | ||
*vmin* and *vmax* are used in conjunction with the default norm to | ||
map the color array (*c*) to the colormap (*cmap*). If None, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this actually reads fine without the parentheses too (map the color array *c* to the colormap *cmap*
) -- either way is fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you are right. I’ll remove or if someone want to push a change that is great.
2ae74ee
to
e952072
Compare
PR Summary
Someone on stack overflow didn't understand what
vmin/vmax
were for, to which I was going to point them to the docs. However, the docs forscatter
mention the "luminance" of the data, which is not really at all whatvmin/vmax
change. So I suggest the following changes to be a little clearer. Also its a bit strange to say vmin and vmax work with norm when their use with norm is deprecated...PR Checklist