Skip to content

Fix bug where only one tick label appears sometimes#2280

Merged
swharden merged 4 commits intoScottPlot:mainfrom
Xerxes004:main
Dec 21, 2022
Merged

Fix bug where only one tick label appears sometimes#2280
swharden merged 4 commits intoScottPlot:mainfrom
Xerxes004:main

Conversation

@Xerxes004
Copy link
Contributor

Purpose:

Sometimes, only one tick label would appear on an axis. This was because sometimes the 'ideal' tick spacing wasn't ideal after all. When calculating the ideal tick spacing, I check to see if it's possible the spacing could be too high, then select the next-smaller spacing instead.

See #2278

@Xerxes004
Copy link
Contributor Author

I noticed that same Mac test fails in other people's pull requests as well. Not sure what the deal is with that, but not related to this PR. Looks to be some kind of color test.

@swharden
Copy link
Member

Thanks for this @Xerxes004! Sorry it took me longer to get to this than typical (see #2304 for details)

I noticed that same Mac test fails in other people's pull requests as well. Not sure what the deal is with that, but not related to this PR. Looks to be some kind of color test.

Something crazy happened to the cloud mac build computers... I'll figure it out later 😅 This PR looks great, thanks again!

@swharden swharden enabled auto-merge December 21, 2022 05:46
@swharden swharden disabled auto-merge December 21, 2022 05:57
@swharden swharden merged commit 2ecac29 into ScottPlot:main Dec 21, 2022
@swharden swharden mentioned this pull request Dec 21, 2022
10 tasks
@swharden swharden linked an issue Dec 22, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If plots are small enough, sometimes there aren't enough ticks

2 participants