[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-08-01 Thread kcrisman
This looks likely, thanks! The next step for you (and all of us) would be as follows: 1) Neither of these codes are so long that you couldn't put them as formatted text in comments on the relevant ticket. Use {{{ code }}} to format them. 2) If you could (on the ticket) attach or link to

[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-29 Thread Niranjana K M
Wait, i just solved it! It is not the issue with matplotlib but with the construction of SelectiveFormatter. This formatter construction is incomplete. I have created two new customized ScalarFormatters (default formatters used by matplotlib), the second one would be a good new addition

[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-29 Thread kcrisman
> Time being solution would be to drop use of SelectiveFormatter to get > rid of 0 tick label if the axes cross. Let the origin be visible for some > time. > My guess is that this would not be seen as a great fix, but let's put images and other followup on the ticket. -- You received this

[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-28 Thread Niranjana K M
@kcrisman 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. There is no such compulsion, indeed I like working with SAGE. My reply about my other

[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-28 Thread kcrisman
This is now https://trac.sagemath.org/ticket/34233 -- 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

[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-28 Thread kcrisman
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

[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-28 Thread Niranjana K M
I found it ! The problem is in use of SelectiveFormatter to get rid of 0 tick label if the axes cross. Commenting out lines 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

[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-27 Thread Niranjana K M
Regarding axes Formatter, inserting rcParams['axes.formatter.use_mathtext'] = True just after from matplotlib import rcParams in graphics.py makes the scientific notation to be typeset as x 10^7 (for example). This looks nicer than 1e7. See the figure. Though it does not solve the

[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-27 Thread Niranjana K M
Very sorry. I am new to git and that was my first trac ticket ever. If somebody can take it up patching i would be happy. On Thursday, July 28, 2022 at 1:45:18 AM UTC+5:30 emanuel.c...@gmail.com wrote: > Le mercredi 27 juillet 2022 à 16:53:39 UTC+2, niran…@gmail.com a écrit : > > Dear Kcrisman,

[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-27 Thread Emmanuel Charpentier
Le mercredi 27 juillet 2022 à 16:53:39 UTC+2, niran…@gmail.com a écrit : Dear Kcrisman, > I will look into it *if* you promise me to *review* and *close* my > another ticket https://trac.sagemath.org/ticket/34038 > based on the thread >

[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-27 Thread Niranjana K M
Dear Kcrisman, I will look into it *if* you promise me to *review* and *close* my another ticket https://trac.sagemath.org/ticket/34038 based on the thread https://groups.google.com/g/sage-devel/c/tMH1RZNyC9s/m/DRwexGpzAwAJ  With regards Niranjana On Wednesday, July 27, 2022 at

[sage-devel] Re: Display of scale multiplier in scientific notation (the e notation for powers of ten) is missing for plots starting with 0

2022-07-27 Thread kcrisman
This is a good question, and one that has been around for a while in some form, unfortunately; see https://trac.sagemath.org/ticket/7964 for a related ticket. See https://trac.sagemath.org/ticket/30983 for a ticket that complains instead about something else but which is closely related. We