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

setting significant no. of digits #27

Open
am610 opened this issue Apr 20, 2021 · 1 comment
Open

setting significant no. of digits #27

am610 opened this issue Apr 20, 2021 · 1 comment

Comments

@am610
Copy link

am610 commented Apr 20, 2021

I am a bit confused on how to use the nice number or the significant digit function to reduce the useless number of trailing digits. It also hurts the plot. Attached figure shows this,
Screenshot 2021-04-20 at 5 05 40 PM

Screenshot 2021-04-20 at 5 06 17 PM

@mraveri
Copy link
Collaborator

mraveri commented Apr 20, 2021

Ah, good catch, this is a python3 problem with number to string conversion...
This is solved by converting to strings this way: str('{:g}'.format(number))

Will add it later!

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

No branches or pull requests

2 participants