Hi, I'm plotting a real time data with QCustomPlot for an oscilloscope bulding . My code is somthing like:
for(int i=0; i<(1024; i++){ (ui->plot_platform->graph(0)->data()->begin()+i)->key=x2_pos_scope; (ui->plot_platform->graph(0)->data()->begin()+i)->value=y[i]; }
I'm using graph(0)->data()... Methode to Update previous data and no clear all of previous data. This what Oscilloscopes Do. My problem is in this picture: https://ibb.co/cB5MoS.
when signal is updating, may previous data and current data be unbalance. what oscilloscopes do is that clear for example 10 data Ahead of updating point. So a fault Vertical line would not plotted. How can i implement it in Qt. It seems QCustomplot connect two
tandem in every condition. What can i do?