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

list_plot labels don't indicate exponential notation by default #31447

Closed
davidlowryduda opened this issue Mar 2, 2021 · 3 comments
Closed

Comments

@davidlowryduda
Copy link
Contributor

The plotting snippet list_plot([2**n for n in range(100)]) shows a plot that is almost right, except that the y-labels are incorrect. They show 1, 2, ... instead of something like 1e30, 2e30.

This might have to do with #30176, updating matplotlib to 3.3, and the different behavior of OldScalarFormatter and ScalarFormatter in matplotlib, but I'm not sure.

This was pointed out to me by Tom Hulse.

CC: @slel

Component: graphics

Keywords: list_plot, plot

Issue created by migration from https://trac.sagemath.org/ticket/31447

@slel
Copy link
Member

slel commented Mar 3, 2021

comment:1

Possibly a duplicate of #30983. Give positive review if you think so.

That ticket links to reports on Ask Sage, where some workarounds are provided.

@slel slel removed this from the sage-9.3 milestone Mar 3, 2021
@davidlowryduda
Copy link
Contributor Author

comment:2

I agree that this is a duplicate of #30983. Thank you for catching that!

@slel
Copy link
Member

slel commented Mar 3, 2021

comment:3

Thanks for the report and code snippet.
Happy to review a fix to #30983.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants