Add WilkinsonLocator based on Extended Wilkinson Algorithm#31391
Closed
Aryan-Gore wants to merge 10 commits intomatplotlib:mainfrom
Closed
Add WilkinsonLocator based on Extended Wilkinson Algorithm#31391Aryan-Gore wants to merge 10 commits intomatplotlib:mainfrom
Aryan-Gore wants to merge 10 commits intomatplotlib:mainfrom
Conversation
Seed can be manually set for path.sketch by modifying the value of rcParams path.sketch_seed or by passing a seed value to xkcd or Artist.set_sketch . Seed will also have a rolling(auto incrementing) behaviour. Co-Authored-By: Oscar Gustafsson <8114497+oscargus@users.noreply.github.com> Co-Authored-By: eudoxos <1029876+eudoxos@users.noreply.github.com> Co-authored-by: AryanSheka
Member
|
It seems like the majority of your PR consists of changes related to sketch seed. Please remove those. It would also make sense to be able to specify Why is |
Member
|
Replaced by #31393 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR summary
This PR introduces a new tick locator,
WilkinsonLocator, based on the Extended Wilkinson Algorithm for generating aesthetically pleasing and well-distributed axis ticks.What problem does it solve?
This implementation improves tick placement by optimizing:
What is the reasoning for this implementation?
The locator evaluates multiple candidate step sizes using a predefined set (Q = [1, 2, 2.5, 5, 10]) and selects the best based on a scoring function that balances simplicity, coverage, and density.
Example :