Ask Your Question
2

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

asked 2 years ago

ibooth gravatar image

updated 2 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 2 years ago

slelievre gravatar image
Preview: (hide)
link

Comments

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

ibooth gravatar imageibooth ( 2 years ago )

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

Stats

Asked: 2 years ago

Seen: 743 times

Last updated: Aug 04 '22