Skip to content
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] Small fixes found by velin #26705

Merged
merged 1 commit into from
Sep 12, 2023
Merged

[Doc] Small fixes found by velin #26705

merged 1 commit into from
Sep 12, 2023

Conversation

oscargus
Copy link
Contributor

@oscargus oscargus commented Sep 6, 2023

PR summary

PR checklist

image to.
hsv_max_sat : number, default: 0
The maximum saturation value that the *intensity* map can shift the output
image to.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not know enough about HSV saturation, but it seems a bit "weird" that the min value is larger than the max value...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does seem odd, but the blend_hsv function docstring below says:

The default extremes are
chose so that completely shaded points are nearly black (s = 1, v = 0)
and completely illuminated points are nearly white (s = 0, v = 1).

So, I think this is expected although unintuitive at first glance.

lib/matplotlib/_constrained_layout.py Outdated Show resolved Hide resolved
image to.
hsv_max_sat : number, default: 0
The maximum saturation value that the *intensity* map can shift the output
image to.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does seem odd, but the blend_hsv function docstring below says:

The default extremes are
chose so that completely shaded points are nearly black (s = 1, v = 0)
and completely illuminated points are nearly white (s = 0, v = 1).

So, I think this is expected although unintuitive at first glance.

lib/matplotlib/colors.py Show resolved Hide resolved
@ksunden ksunden added this to the v3.8.0 milestone Sep 12, 2023
@ksunden ksunden merged commit 8c94cd2 into matplotlib:main Sep 12, 2023
39 of 40 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Sep 12, 2023
@oscargus oscargus deleted the velindoc branch September 12, 2023 19:05
oscargus added a commit that referenced this pull request Sep 12, 2023
…705-on-v3.8.x

Backport PR #26705 on branch v3.8.x ([Doc] Small fixes found by velin)
@ksunden ksunden mentioned this pull request Sep 15, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation: API files in lib/ and doc/api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants