Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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 M2 Mac 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.

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 M2 Mac 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.