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/2fbf1896-c976-4873-ab4c-50c2fc6d95d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to