Skip to content

MNT: clarify path.sketch rcparam format + test validate_sketch #26921

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 3 commits into from
Oct 17, 2023

Conversation

story645
Copy link
Member

@story645 story645 commented Sep 26, 2023

Tried to make it clearer that the rcParam format is path:sketch: scale, length, randomness. I originally read it as path:sketch: (scale, length, randomness) and that caused loads of test failures.

This is spun off of #26854 since I think this param is worth clarifying.

It's probably more sensible to just let path.sketch take a tuple as a valid arg but this tests status quo

@story645 story645 added the Documentation: API files in lib/ and doc/api label Sep 26, 2023
@story645 story645 changed the title clarify path.sketch rcparam format DOC: clarify path.sketch rcparam format Sep 26, 2023
@story645 story645 changed the title DOC: clarify path.sketch rcparam format DOC: clarify path.sketch rcparam format + test validate_sketch Sep 26, 2023
@timhoffm
Copy link
Member

timhoffm commented Sep 28, 2023

We should just accept the sting tuple. I'd rather leave "3-tuple" in the documentation, because "triplet" is not a well-defined term.

@story645 story645 changed the title DOC: clarify path.sketch rcparam format + test validate_sketch MNT: clarify path.sketch rcparam format + test validate_sketch Sep 28, 2023
@story645
Copy link
Member Author

@timhoffm added tuple support

Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
@timhoffm timhoffm added this to the v3.9.0 milestone Oct 5, 2023
@story645
Copy link
Member Author

Can this get a second review?

@ksunden ksunden merged commit 1d6f09f into matplotlib:main Oct 17, 2023
@story645 story645 deleted the mplrc branch October 17, 2023 18:34
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.

3 participants