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

fix: reintroduce vmin, vmax into get_ticks; addresses #4441 #4442

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

Conversation

thomvet
Copy link
Contributor

@thomvet thomvet commented Oct 2, 2024

Description

Fixes #4441
get_ticks now filters out values that are below vmin and vmax supplied to it.

Type of change

  • [ x] Bug fix (non-breaking change which fixes an issue)

Checklist

  • added appropriate test.
  • other options seemed not relevant.

src/makielayout/lineaxis.jl Outdated Show resolved Hide resolved
@thomvet
Copy link
Contributor Author

thomvet commented Oct 3, 2024

Didn't expect this simple change to break something else; good thing the tests exist! I introduced another fix to address the issue (dont't use showoff on empty array).

But now I am running into #4416 when testing locally, i.e., Theme merging doesn't work anymore? Not obvious to me why the changes on get_ticks should have caused this!? Nevermind. Just didn't have the most current version of MakieCore locally. It should hopefully work on CI.

@jkrumbiegel
Copy link
Member

The ticks are actually filtered later in the Axis code, as some tick algorithms return ticks outside the bounds, so you could either add that filtering to each algorithm, or just in a step after.

@thomvet
Copy link
Contributor Author

thomvet commented Oct 3, 2024

Hm, I stumbled over this while working on a code for a new type of axis (TernaryAxis - for ternary plots), where I didn't have the further steps implemented yet.

I took the basic code from PolarAxis, so it might be that the problem is in there as well.

I'll check tomorrow.

src/makielayout/lineaxis.jl Outdated Show resolved Hide resolved
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.

get_ticks(ticks, identity, Makie.automatic, limits...) results in unintended results
4 participants