Here are some example points:
(1,1),(2,3),(3,1),(4,2),(1,5),(3,4)
I want to plot these points with a line in turn, I've added them into the vector x
and y
. Then, setData(x,y)
was performed.
However, the QCustomPlot
seems like can only plot points by the order of x
axis.
I noticed the points were sorted automatically by the setData(x,y)
.
How can I do to plot these points by the original order?