Skip to content

Fix issue with sketch not working on PathCollection in Agg #25645

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 1 commit into from
Sep 26, 2024

Conversation

oscargus
Copy link
Member

@oscargus oscargus commented Apr 7, 2023

PR Summary

Closes #19693

Seems like sketch was not handled at all for path collections.

Maybe not the nicest code, but my C/C++ is not that good.

If I understand it correctly, sketch isn't really tested (as it is hard to recreate the images?)?

Here is the output anyway:

csketch

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (and pytest passes)
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • New plotting related features are documented with examples.

Release Notes

  • New features are marked with a .. versionadded:: directive in the docstring and documented in doc/users/next_whats_new/
  • API changes are marked with a .. versionchanged:: directive in the docstring and documented in doc/api/next_api_changes/
  • Release notes conform with instructions in next_whats_new/README.rst or next_api_changes/README.rst

@oscargus oscargus added this to the v3.8.0 milestone Apr 7, 2023
@oscargus oscargus force-pushed the aggsketchcollection branch from 49b3d47 to b235cbb Compare April 7, 2023 12:43
@story645
Copy link
Member

story645 commented Apr 9, 2023

Can you try an image test? I think they're recreatable if you use a fixed seed?

@oscargus
Copy link
Member Author

We can only control the seed for data generation in NumPy, not the seed for the C++-part.

However, there is #13479 which is related.

@story645
Copy link
Member

yeah, I agree with Jody that #13479 (comment) is the correct solution (and also probably out of scope here)

@oscargus
Copy link
Member Author

I've realized that sketching is in general not tested that well (if at all). However, although the result is (probably) deterministic at the moment, I think that it is better to add tests as part of implementing seeding.

@story645 story645 mentioned this pull request Jul 11, 2023
6 tasks
@ksunden ksunden modified the milestones: v3.8.0, v3.9.0 Aug 8, 2023
@QuLogic QuLogic modified the milestones: v3.9.0, v3.10.0 Apr 3, 2024
Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

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

This looks reasonable, but I guess it needs rebase to refresh CI?

@timhoffm
Copy link
Member

@oscargus please rebase

@oscargus
Copy link
Member Author

@oscargus please rebase

Will sort it out over the weekend.

@oscargus
Copy link
Member Author

No conflicts during rebase (but apparently a very long/short weekend...).

@QuLogic QuLogic merged commit 49eeefc into matplotlib:main Sep 26, 2024
48 of 49 checks passed
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.

path.sketch doesn't apply to PolyCollection
5 participants