QCustomPlot Discussion and Comments

Get min distance between two consecutive keysReturn to overview

Hi all,

I'd like to implement a pretty rescale function in which I can guaranty that every key will occupy at least N pixels so I won't get compressed view of the graph when new data arrives.

For that I need to know the min distance between two consecutive keys and then rescale accordingly.

I don't want to traverse the keys every time I need to pretty rescale so I'm asking whether QCustomPlom keeps such a variable in its cache, like it does for upper/lower keys.


i'm pretty sure it doesn't, but there's nothing stopping you from subclassing QCPGraph and adding that.