QCustomPlot Discussion and Comments

how to plot a lineReturn to overview

I plot a line, looks as following (e.g., point p1 --p5, lot of points )
p1 *
p2*
p3*
p4*
p5 *
code is

drawPen.setColor(Qt::white);
drawPen.setStyle(Qt::PenStyle::DashLine);
drawPen.setWidth(4);
ui->widget->addGraph();
ui->widget->graph(idxLane1)->setPen(drawPen);
ui->widget->graph(idxLane1)->setVisible(true);
ui->widget->graph(idxLane1)->setData(y_Lane1, x_Lane1);


most of time, it works correctly, but some time

p1 and p5, p2 and p4 are connected with a line, is it a bug of qcustomplot?


p1 and p5 is paralhttps://www.qcustomplot.com/index.php/support/forum/2301#lel to vertical axis, and filling in enabled ,how to diable auto filling

now I solved the problem, using QCPCurve insteadof QCPGraph