8000 Enables setting hatch linewidth in Patches and Collections, also fixes setting hatch linewidth by rcParams by Impaler343 · Pull Request #28048 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Enables setting hatch linewidth in Patches and Collections, also fixes setting hatch linewidth by rcParams #28048

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

Merged
merged 16 commits into from
Oct 31, 2024

Conversation

Impaler343
Copy link
Contributor
@Impaler343 Impaler343 commented Apr 9, 2024

PR summary

Fixes #21108 using the patch provided by @anntzer which I modified to pass tests. Need to write tests for:

  • Setting hatch linewidth in a Patch
  • Setting hatch linewidth in a Collection

PR checklist

@Impaler343
Copy link
Contributor Author
Impaler343 commented Apr 10, 2024

I don't know why docs and CI are failing, could somebody please check this out?

@rcomer
Copy link
Member
rcomer commented Apr 10, 2024

Hi @Impaler343, I'm not certain but I think the docs failure may be related to something that has been fixed on main. Could you try rebasing?

git fetch upstream
git rebase upstream/main

Appveyor is showing the same failure on all PRs right now, so I wouldn't worry about that one.

@Impaler343
Copy link
Contributor Author

Do I also need to squash?

@tacaswell
Copy link
Member

There is enough exploration/experimentation in here it is probably worth squashing to a handful of commits.

@tacaswell tacaswell added this to the v3.10.0 milestone Apr 10, 2024
@tacaswell
Copy link
Member

I think this is like 80% of the way there and looking pretty good!

@Impaler343
Copy link
Contributor Author
Impaler343 commented Apr 11, 2024

Can we get a feature for check_figures_equal() similar to image_comparison()'s remove_text feature? As the former is a more economical way to test, having it for check_figures_equal() would be a good idea. Or is it already available, and I don't see it?

@oscargus
Copy link
Member

Can we get a feature for check_figures_equal() similar to image_comparison()'s remove_text feature?

I do not think this is required? The reason remove_text exists is that the font files may be different on different machine. However, check_figures_equal() are executed on the same machine, so should never be a problem. Am I missing something?

@Impaler343
Copy link
Contributor Author
Impaler343 commented Apr 15, 2024

Can we get a feature for check_figures_equal() similar to image_comparison()'s remove_text feature?

I do not think this is required? The reason remove_text exists is that the font files may be different on different machine. However, check_figures_equal() are executed on the same machine, so should never be a problem. Am I missing something?

I suggested this as it is a quick plugin to make tests run faster by focussing on the important part of the plot, by removing axes, labels and ticks, and this most probably should make a significant difference while running a large amount of tests

@Impaler343 Impaler343 requested review from tacaswell and ksunden April 20, 2024 02:13
@tacaswell tacaswell merged commit c52cb41 into matplotlib:main Oct 31, 2024
41 of 43 checks passed
ksunden added a commit to ksunden/matplotlib that referenced this pull request Oct 31, 2024
Problems were introduced by matplotlib#28048, specifically relating to set_sizes. I simply ran with the flag to regenerate, so more changes were made, which I do not fully understand why they were not problematic earlier.
ksunden added a commit to ksunden/matplotlib that referenced this pull request Oct 31, 2024
Problems were introduced by matplotlib#28048, specifically relating to set_sizes. I simply ran with the flag to regenerate, so more changes were made, which I do not fully understand why they were not problematic earlier.
ksunden added a commit to ksunden/matplotlib that referenced this pull request Nov 1, 2024
Problems were introduced by matplotlib#28048, specifically relating to set_sizes. I simply ran with the flag to regenerate, so more changes were made, which I do not fully understand why they were not problematic earlier.
@jkseppan jkseppan mentioned this pull request May 18, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Hatch linewidths cannot be modified in an rcParam context
6 participants
0