Hello everyone,

I have a question considering the Axis.

In my plot, I have a height axis displaying meters. This axis may show 10000m 
or just 1m depending on the zoom level.
At the moment, the axis calculates the ticks automatically. However, sometimes 
a lot of ticks are displayed.

Now I want to customize the distances of the ticks (1m, 10m, 50m, 100m, ...) 
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?

I already noticed 
http://www.pyqtgraph.org/documentation/graphicsItems/axisitem.html#pyqtgraph.AxisItem.setTickSpacing,
 but I am not sure, how to use it. Is there a good example available?

Best regards,
Sandra Rum

-- 
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/65fe2c10-1342-4e2c-9e7e-9d4314bbe825%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to