Very good Patrick! I was just about to start doing hacks in the code and your suggestion was to the point and very timely! It works! Thanks!
Trifon On Friday, December 21, 2018 at 3:47:18 AM UTC+1, Patrick wrote: > > Hi, > > This suggestion isn't elegant, but easy enough. If you never wanted > pyqtgraph to use the e notation, then you could modify the code in > AxisItem.py ( > http://www.pyqtgraph.org/documentation/_modules/pyqtgraph/graphicsItems/AxisItem.html#AxisItem.tickStrings), > > around line 756. Comment/delete the first part of the if block, and remove > one level of indent from the vstr = (... in the else block: > > #~if abs(vs) < .001 or abs(vs) >= 10000: > #~vstr = "%g" % vs > #~else: > vstr = ("%%0.%df" % places) % vs > > Patrick > > On Friday, 21 December 2018 05:43:39 UTC+10:30, Stefan Seefeld wrote: >> >> >> On 2018-12-20 2:04 p.m., Trifon Trifonov wrote: >> >> >> >> It seems this offers what you are asking for: >>> http://www.pyqtgraph.org/documentation/graphicsItems/axisitem.html#pyqtgraph.AxisItem.enableAutoSIPrefix >>> >>> >> >> Dear Stefan, >> >> This indeed made the trick! Thank you very much! >> >> However, now I have another problem :) >> >> now the axes ticks are labeled as: >> >> 2.456+e06, which is Ok in general, but looks ugly in a paper plot. >> >> any way that you know that i can display all the digits as they are in >> the time series without truncating? >> >> >> I would like to know the answer to that question, too. :-) >> >> Cheers, >> [image: Stefan] >> >> -- >> >> ...ich hab' noch einen Koffer in Berlin... >> >> >> -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/0edec321-ac6c-43ee-a2a8-350b76e6658d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
