What you are looking for is probably AxisItem.setTickSpacing()

Or, if you are implementeing your own AxisItem, you can reimplement the 
tickSpacing() method

On Monday, April 23, 2018 6:57:02 PM CEST [email protected] wrote:
> Now I want to customize the distances of the ticks (0 , 5, 10, ...)
> depending on the range, so that only 5-10 ticks are displayed.
> 
> Is there an easy way to implement that? And what is the best way to do it?


-- 
+----------------------------------------------------+
 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/5712255.L9yGWNFRR2%40pc218.
For more options, visit https://groups.google.com/d/optout.

Reply via email to