How to remove Extra QPen in my QCustomplot
-
I set the timer function and run the graph in real-time plotting point, I have set 2 QPen only, but it shows Extra QPen in my customplot, how to fix it.
This is my code ,
QString TestName = ui->TestName_Lbl->text(); QVector<double> xv1(2); QVector<double> yv1(2); QVector<double> xv2(2); QVector<double> yv2(2); xv1[0]=xv1[1]=30; xv2[0]=xv2[1]=90; yv1[0]=yv2[0]=*std::min_element(qv_y.begin() , qv_y.end())-0.25; yv1[1]=yv2[1]=*std::max_element(qv_y.begin() , qv_y.end())+0.25; ui->customPlot->xAxis->setLabel("Time(S)"); ui->customPlot->yAxis->setLabel("Abs"); // set axes ranges, so we see all data: ui->customPlot->xAxis->setRange(30, 90); ui->customPlot->yAxis->setRange(*std::min_element(qv_y.begin() , qv_y.end())-0.25,*std::max_element(qv_y.begin() , qv_y.end())+0.25); ui->customPlot->update(); ui->customPlot->addGraph(); ui->customPlot->graph(1)->setPen(QPen(Qt::red,3)); ui->customPlot->graph(1)->setData(xv1,yv1); ui->customPlot->graph(2)->setPen(QPen(Qt::red,8)); ui->customPlot->graph(2)->setData(xv2,yv2); ui->customPlot->replot();how to remove Extra QPen in my qcustomplot

Extra pen like X-Axis (40) point ..
-
I set the timer function and run the graph in real-time plotting point, I have set 2 QPen only, but it shows Extra QPen in my customplot, how to fix it.
This is my code ,
QString TestName = ui->TestName_Lbl->text(); QVector<double> xv1(2); QVector<double> yv1(2); QVector<double> xv2(2); QVector<double> yv2(2); xv1[0]=xv1[1]=30; xv2[0]=xv2[1]=90; yv1[0]=yv2[0]=*std::min_element(qv_y.begin() , qv_y.end())-0.25; yv1[1]=yv2[1]=*std::max_element(qv_y.begin() , qv_y.end())+0.25; ui->customPlot->xAxis->setLabel("Time(S)"); ui->customPlot->yAxis->setLabel("Abs"); // set axes ranges, so we see all data: ui->customPlot->xAxis->setRange(30, 90); ui->customPlot->yAxis->setRange(*std::min_element(qv_y.begin() , qv_y.end())-0.25,*std::max_element(qv_y.begin() , qv_y.end())+0.25); ui->customPlot->update(); ui->customPlot->addGraph(); ui->customPlot->graph(1)->setPen(QPen(Qt::red,3)); ui->customPlot->graph(1)->setData(xv1,yv1); ui->customPlot->graph(2)->setPen(QPen(Qt::red,8)); ui->customPlot->graph(2)->setData(xv2,yv2); ui->customPlot->replot();how to remove Extra QPen in my qcustomplot

Extra pen like X-Axis (40) point ..
@JonB Give me any suggestion to fix the error
-
@JonB Give me any suggestion to fix the error
@Ramkumar-Mohan I'm sure if @JonB has a suggestion he will provide it. Please keep in mind that most people here are not QtCompany employees and do help voluntarily in their free time...
-
@Ramkumar-Mohan I'm sure if @JonB has a suggestion he will provide it. Please keep in mind that most people here are not QtCompany employees and do help voluntarily in their free time...
@jsulm Ok