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

Scientific formatter fails for very small numbers #1858

Closed
rakhusur opened this issue Dec 3, 2018 · 2 comments
Closed

Scientific formatter fails for very small numbers #1858

rakhusur opened this issue Dec 3, 2018 · 2 comments

Comments

@rakhusur
Copy link

rakhusur commented Dec 3, 2018

plot(x -> 1e-20*sin(x), ylims = (-1e-20, 1e-20), yformatter = :scientific)

produces
fig

With an exponent of -10, everything works fine. This happens on all backends and using yformatter = string gives correct results, so the problem seems to be in the scientific formatter.

@mkborregaard
Copy link
Member

I believe this error is in Showoff.jl - ticks are required to fit in a Float32

@briochemc
Copy link
Collaborator

briochemc commented Nov 27, 2020

Maybe this would be solved by JuliaGraphics/Showoff.jl#19?


[EDIT] Yes, that PR/branch worked for me

With the current release:
Screen Shot 2020-11-28 at 12 18 18 am

With the PR/branch:
Screen Shot 2020-11-28 at 12 17 13 am

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

4 participants