QCustomPlot Discussion and Comments

Hi everyone,

Is there a way to offset a graph, or a layer, without adding constants to the data ? I would like in fact to draw several lsimpulse graphs (samples of random distributions) on top of each other. But lsimpulse graphs all have the x-axis as 'base' as I understand. I can't figure out how to do this.

Regards,

Gautier


Ok, I think the best way is to not chose lsimpulse but lsnone and to change the scatterstyle with a custom QPainterPath consisting of a single vertical line

see void QCPScatterStyle::setCustomPath ( const QPainterPath & customPath )

Then, I can shift the whole set of data by a constant vertical vector.

It is not as generic as a graph offset but will do what I'd like.

Regards,

Gautier