Maybe there is a simpler solution, but you can subclass AxisItem
reimplementing the tickStrings method more or less like this:
```
class MyAxisItem(pg.AxisItem):
def tickStrings(self, values, scale, spacing):
return [ "%.5f" % v for v in values ]
```
...and then use this axis item in your plot
I hope this helps.
On Thursday, January 16, 2020 4:45:28 PM CET Иван Никитин wrote:
> How to change AxisItem style from this:
> 0.123456
> 0.123
> 0.12
>
> to this:
> 0.12345
> 0.12300
> 0.12000
>
> ?
--
+----------------------------------------------------+
Carlos Pascual Izarra
Scientific Software Coordinator
Computing Division
ALBA Synchrotron [http://www.albasynchrotron.es]
Carrer de la Llum 2-26
E-08290 Cerdanyola del Valles (Barcelona), Spain
E-mail: [email protected]
Phone: +34 93 592 4428
+----------------------------------------------------+
--
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/5794793.hvRFBsze4X%40pc218.