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

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

plot(x^2,0,150000)

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 close merge delete

Sort by » oldest newest most voted

Already reported several times, see for instance these related discussions:

The bug does not show up when plotting with a frame, which provides a workaround:

plot(x^2, 0, 150000, frame=True)


Hopefully soon to be solved, given the sage-devel discussion linked to above.

more

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

( 2022-08-08 22:07:06 +0200 )edit

## Stats

Seen: 39 times

Last updated: Aug 04