Hi everyone,

I'm a newie in QWT and I need to create a CurveGraph.

My Problem is that on my curve, my first and last points are always linked like circled in this picture.

ex_graph_qwt.png
(Yup, Paint is great )

I need to delete this link, do somebody know about how doing it ?

Here's my code in case you need it :

Qt Code:
  1. void MainWindow::init()
  2. {
  3. xgraph->resize(10000); // Capacité max à voir avec JWI
  4. ygraph->resize(10000);
  5.  
  6. Courbe1->setPen(* new QPen(Qt::red,5,Qt::SolidLine));
  7. Courbe1->attach(Graph1);
  8. Graph1->setTitle("Acquisition de la Température");
  9. Graph1->setParent(ui->groupBox_2);
  10. }
  11.  
  12. void MainWindow::createGraphs(int spvalue)
  13. {
  14. QVector<double> x(1000);
  15. QVector<double> y(1000);
  16. x.swap(*xgraph);
  17. y.swap(*ygraph);
  18.  
  19. x.replace(nb_inc_sp1, (double)nb_inc_sp1);
  20. y.replace(nb_inc_sp1, (double)spvalue);
  21.  
  22.  
  23. qDebug() << x << "and" << y;
  24.  
  25. Courbe1->setSamples(x, y);
  26. Graph1->replot();
  27.  
  28. x.swap(*xgraph);
  29. y.swap(*ygraph);
  30.  
  31. }
To copy to clipboard, switch view to plain text mode 

Thanks to all !