-
Notifications
You must be signed in to change notification settings - Fork 80
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Axes Numerical Ticks in Exponential Form not Formatting Properly in Log Scale #90
Comments
Great Issue report, thanks a lot. I will have a look at it. Kind of resting a bit after latest upload (it was a big work). |
Thanks @piccolomo ! |
Quick fix:
Regards! 🙂 |
cool, i will come back to this in following weeks. i slowly creating next minor version. if you think it works feel free to go ahead with a pull request. for now thanks for the issue and solution. |
…omo#90" **Implementing the quick fix:** 1) Replace the line: ``` labels = [str(ut.round(el, d + 1)) for el in ticks] ``` 2) For this new line: ``` labels = [f"{ut.round(el, d + 1):f}" for el in ticks] ``` Regards! 🙂
Fix the "Issue when formatting tick labels for log scale plots #90"
I have solved the issue in the new version 5.1, available only on GitHub for now, using: pip install git+https://github.com/piccolomo/plotext Any feedback or double test is appreciated. |
Great library! Just hit the problem below when creating a log-log plot that seems to be due to how the tick labels are constructed.
Here's a minimal example to reproduce the issue:
This causes:
The value of
labels
at that point is:and there is no decimal point in the first label.
distinguishing_digit()
might also be returning too many digits in this case.The text was updated successfully, but these errors were encountered: