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

Add option strip_zero for MultiplesTicks #4372

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tuncbkose
Copy link
Contributor

@tuncbkose tuncbkose commented Sep 17, 2024

Description

Fixes #4370

Adds a new option strip_zero::Bool to MultiplesTicks and related logic to get_ticks that strips labels of the form 0x to 0.

Type of change

Delete options that do not apply:

  • New feature (non-breaking change which adds functionality)

Checklist

  • Added an entry in CHANGELOG.md (for new features and breaking changes)
  • Added or changed relevant sections in the documentation
  • Added unit tests for new algorithms, conversion methods, etc.

@tuncbkose
Copy link
Contributor Author

I'm not sure how to add tests for these, even after reading Contributing.md etc. If someone gives me some instructions, I'd be happy to add some.

@tuncbkose tuncbkose marked this pull request as ready for review September 17, 2024 06:27
@ffreyer
Copy link
Collaborator

ffreyer commented Sep 18, 2024

Some checks like

mt = MultipleTicks(...)
@test get_ticks(...) == ...

in https://github.com/MakieOrg/Makie.jl/blob/master/test/makielayout.jl would be good I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Work in progress
Development

Successfully merging this pull request may close these issues.

MultiplesTicks when multiples is 0
2 participants