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 :
void MainWindow::init()
{
xgraph->resize(10000); // Capacité max à voir avec JWI
ygraph->resize(10000);
Courbe1
->setPen
(* new QPen(Qt
::red,
5,Qt
::SolidLine));
Courbe1->attach(Graph1);
Graph1->setTitle("Acquisition de la Température");
Graph1->setParent(ui->groupBox_2);
}
void MainWindow::createGraphs(int spvalue)
{
QVector<double> x(1000);
QVector<double> y(1000);
x.swap(*xgraph);
y.swap(*ygraph);
x.replace(nb_inc_sp1, (double)nb_inc_sp1);
y.replace(nb_inc_sp1, (double)spvalue);
qDebug() << x << "and" << y;
Courbe1->setSamples(x, y);
Graph1->replot();
x.swap(*xgraph);
y.swap(*ygraph);
}
void MainWindow::init()
{
xgraph->resize(10000); // Capacité max à voir avec JWI
ygraph->resize(10000);
Courbe1->setPen(* new QPen(Qt::red,5,Qt::SolidLine));
Courbe1->attach(Graph1);
Graph1->setTitle("Acquisition de la Température");
Graph1->setParent(ui->groupBox_2);
}
void MainWindow::createGraphs(int spvalue)
{
QVector<double> x(1000);
QVector<double> y(1000);
x.swap(*xgraph);
y.swap(*ygraph);
x.replace(nb_inc_sp1, (double)nb_inc_sp1);
y.replace(nb_inc_sp1, (double)spvalue);
qDebug() << x << "and" << y;
Courbe1->setSamples(x, y);
Graph1->replot();
x.swap(*xgraph);
y.swap(*ygraph);
}
To copy to clipboard, switch view to plain text mode
Thanks to all !
Bookmarks