PyQtGraph: How to show first and last tick string values on x-axis?

50 views
Skip to first unread message

Fouzi Takelait

unread,
Aug 10, 2022, 11:39:38 AM8/10/22
to pyqtgraph

I want to synchronize the x-axis of PyQtGraph. When the user rescales the X-Axis with mouse interactions (e.g. scroll-wheel while mouse on x-Axis) I want to see first and last tick values only when plot is in its initial state and when zoom-in or zoom-out other ticks will appear.

This question has a follow up here and here.

ticks = [list(zip(t_time_value, t_ticks_values))]

Note: ticks can be of a large length (at least 16385).

I found setTickSpacing() but not sure how to use it or it is the right one to use.


Thanks for help!

Reply all
Reply to author
Forward
0 new messages