-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add the "contour.linewidths" configuration option #17236
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
Add the "contour.linewidths" configuration option #17236
Conversation
It defaults to None whcih makes it to fallback to "lines.linewidth" option.
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.
Looks good! Only a few minor comments.
Linting test is now is failing because of the "default: :rc..." which makes the line too long. |
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
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 should get a what's new entry: Add a file to /doc/users/next_whats_new
(see also README.rst in there).
Other than that, this is good to go.
Is it plural |
@QuLogic It's the plural like the argument to |
OK, it only accepts a single float, though? So it should not be plural. |
I agree with @QuLogic While the argument is |
I agree with you both. My concern was about not adding confusion in the user's mind, despite it's less logical to name it linewidths. |
PR Summary
Contours plots are often more beautiful when line widths are smaller
than line widths that are generally used for curves.
This is especially true when
contour
is used withcontourf
, or whenthe number of levels if high.
With this PR, one can change default value for contour linewidths independently from normal line widths. The new options is
"contour.linewidths"
, which defaults toNone
. When value isNone
, it falls back to"lines.linewidth"
like before.PR Checklist