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

Labels for log scale axis are not readable at all #214

Closed
Shimuuar opened this issue Jan 4, 2020 · 2 comments · Fixed by #253
Closed

Labels for log scale axis are not readable at all #214

Shimuuar opened this issue Jan 4, 2020 · 2 comments · Fixed by #253

Comments

@Shimuuar
Copy link
Contributor

Shimuuar commented Jan 4, 2020

It's not the worst example but it's bad enough:
badlog

Counting nines is not pleasant and if we go above/below 10^±15 labels could easily eat half of the plot. And whole 1+9999 thing looks very strange

@clayrat
Copy link
Contributor

clayrat commented May 24, 2023

Oh, so this is actually pretty old. The example at https://github.com/timbod7/haskell-chart/wiki/example-4 has proper labels, after that the function showDs was introduced in 2016 which switches to offsets when there are duplicate tick values. The question is however why do we get duplicate tick values - this also leads to having 1 minor tick per interval instead of 9.

@clayrat
Copy link
Contributor

clayrat commented May 24, 2023

Turns out it's unrelated after all - the minor ticks are generated by a heuristic, and the label issue can be just solved by nubbing the outputs of logTicks.

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 a pull request may close this issue.

2 participants