On Thursday, March 14, 2024 at 10:35:50 AM UTC-4 dim...@gmail.com wrote:

It might help seeing your graphs here, too. Try this: https://sagecell.sagemath.org/?z=eJxL06jQVLBV0KiIM9I20DMwMDDU1EfiGBiAhXi5fICKojUq9IEiOgppEIampkJafpFChUJmnkJRYl56qoYuWBokFcvLlZNZXBJfkJNfouGjqYAVKCsklabb83IpIynVUajMzcyz1TXQMwUxEytsDfVMNYFK0_PzUwDaYipb&lang=sage&interacts=eJyLjgUAARUAuQ== Notice the label 1e-6 + 1, the offset option for matplotlib. I'm surprised that's showing up here for the first time, I don't recall that showing up before, but as we've noted at #34233 there were changes a while back in mpl that our code failed to keep up with. One thing one could try, then, is to add, in addition to the rcParams['axes.formatter.use_mathtext'] = True at #34233 is to see whether one of these (or whatever the right syntax is) might help: rcParams['axes.formatter.use_offSet'] = False rcParams["axes.formatter.offset_threshold"] On Thu, Mar 14, 2024 at 10:04 AM David Joyner <wdjo...@gmail.com> wrote: Hi: I'm trying to show my students a plot of a rational function whose graph is basically 1, so I plotted f(x) = (x^2+0.0001)/(x^2+0.0001000001) However, there is a problem: Note the difference between plot((x^2+0.0001)/(x^2+0.0001000001), (x,-10,10)) (which dips down near x=0) and plot((x^2+0.0001)/(x^2+0.0001000001), (x,-10,10), ymin = -0.1, ymax = 1.5) (which basically looks like a straight line). Same problem for lists: sage: L = [(x/100, f(x/100)) for x in range(-100, 100)] sage: list_plot(L) # bug? sage: list_plot(L, ymin=-0.5, ymax=1.5) # good This is using 'SageMath version 10.3.rc1, Release Date: 2024-02-29' on an ubuntu machine. Can anyone tell what is going on here? I'm happy to attached jpgs of the plots I get, if desired. For comparison, it appears that Sympy plots this correctly. - David Joyner -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAEQuuAXPcQ6_g67a7L4bdy1Ko%2BFH1VnHAT25G3LfY6XR1mMaEg%40mail.gmail.com <https://groups.google.com/d/msgid/sage-support/CAEQuuAXPcQ6_g67a7L4bdy1Ko%2BFH1VnHAT25G3LfY6XR1mMaEg%40mail.gmail.com?utm_medium=email&utm_source=footer> . -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/6e860869-43e0-48fe-b25d-805edfdf98a7n%40googlegroups.com.