Ask Your Question

Plot drops exponent when scientific notation appears on the y-axis

asked 2022-08-01 23:43:55 +0100

ibooth gravatar image

updated 2022-08-02 17:58:22 +0100

Just starting out with Sagemath so apologies if this is trivial - I've had a look online and in the forums but not found the answer - though it seems like this should be well-known if it is a problem!

For Sagemath 9.6 both installed on my own machine (an M1 MacBook Pro) and also CoCalc, I'm having the problem that when I plot figures with large scales on the y-axis, often the power is being cut off. For example if I try


the y-axis is labelled 0, 0.5, 1.0, 1.5, 2.0 - the 10^10 (or e10) is missing. If I decrease the x-range then it sometimes comes back (but sometimes doesn't). Perhaps the top of the figure with the exponent is just being cut off? Is this a known issue? Or is it a Jupyter problem? If I plot with a semilog scale everything is okay. So I'm thinking it is a display problem of some type.

Update: Switching the kernel to 9.1 this error disappears on CoCalc - it adds the exponents to each number on the y-axis (as oppose to just an e10) at the top. But as far as I can tell it happens for 9.2 or later.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-08-04 22:39:15 +0100

slelievre gravatar image
edit flag offensive delete link more


Thanks! Very helpful - I figured it had to have been noticed by someone else...

ibooth gravatar imageibooth ( 2022-08-08 22:07:06 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2022-08-01 20:09:22 +0100

Seen: 445 times

Last updated: Aug 04 '22