plot() silently switches to a different scale when numbers are too big

26 views
Skip to first unread message

erentar2002

unread,
Sep 20, 2022, 9:18:24 PM9/20/22
to sage-support

My problem can be explained with the following two plots:

plot(factorial(x),x,0,9)

and

plot(factorial(x),x,0,10)

When plotting up to 9, the plot gives me exactly what i expect, a linear-linear plot.
When plotting up to 10 though, sage silently chose to make the y-axis log10. This should not be the standard behavior as it leads to confusion.

Eric Gourgoulhon

unread,
Sep 21, 2022, 7:06:10 AM9/21/22
to sage-support
The plot is still linear-linear, but the y axis is labelled by y/1e6 instead of y.
This is clearly a bug. Thanks for reporting it. 
A ticket has already been opened for this issue:

Eric.
Reply all
Reply to author
Forward
0 new messages