Thanks for the continued conversation. I hope it was clear that "we would be grateful" implied that there was no compulsion on your part, as well as on the part of any other contributor.
I did notice the mathtext option, but since our previous version had used the e notation, changing that would be a separate ticket, and probably need some discussion. I found it ! The problem is in use of SelectiveFormatter to get rid of 0 > tick label if the axes cross. Commenting out lines > Great! That is half the battle, good detective work.. However, I couldn't replicate the example you gave - among other thing, show(p) gave me something that wasn't plottable (I had to use savefig etc. on the figure itself). Also, what is your modified version trying to show - the missing part, or a potential solution? Thanks! > > https://github.com/sagemath/sage/blob/develop/src/sage/plot/graphics.py#L2983 > to > > https://github.com/sagemath/sage/blob/develop/src/sage/plot/graphics.py#L2986 > from sage.plot.plot import SelectiveFormatter > subplot.yaxis.set_major_formatter(SelectiveFormatter( > subplot.yaxis.get_major_formatter(), skip_values=[0])) > subplot.xaxis.set_major_formatter(SelectiveFormatter( > subplot.xaxis.get_major_formatter(), skip_values=[0])) > > will bring back the scaling factor in scientific notation. But on the > downside it will print the origin 0. > > SelectiveFormatter use itself has this issue. A modified version of usage > example of SelectiveFormatter in Sage reference >> 2D Plotting > > from sage.plot.plot import SelectiveFormatter > import matplotlib.pyplot as plt > import numpy > > fig=plt.figure() > ax=fig.add_subplot(111) > t = numpy.arange(10000000, 10100000, 100) > s = t > p = ax.plot(t, s) > > formatter=SelectiveFormatter(ax.xaxis.get_major_formatter(),skip_values=[0,1]) > > formatter=SelectiveFormatter(ax.yaxis.get_major_formatter(),skip_values=[0,1]) > ax.xaxis.set_major_formatter(formatter) > ax.yaxis.set_major_formatter(formatter) > > show(p) > >> >>>>>> >>> >> -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/4f7359fd-3b14-4f03-9cd6-0f953d8c5567n%40googlegroups.com.