Skip to content
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

autotickangles for axes with tickson="boundaries" or showdividers=true #6967

Merged
merged 8 commits into from
Apr 16, 2024

Conversation

my-tien
Copy link
Contributor

@my-tien my-tien commented Apr 15, 2024

Previously, if axis.tickson == 'boundaries' or axis.showdividers == true and the ticklabel was detected as overlapping the tick (or divider), a hardcoded 90 degree rotation was applied instead of using autotickangles.

This PR keeps the heuristic for checking overlap with a tick/divider, but chooses the smallest autotickangle necessary to avoid overlap.

Disclaimer I am required to add that…

the software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

draftlogs/6967_fix.md Outdated Show resolved Hide resolved
@archmoj
Copy link
Contributor

archmoj commented Apr 16, 2024

Thanks very much for the great fix.
💃

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.

None yet

2 participants