QCustomPlot Discussion and Comments

Point - to - point smoothing curveReturn to overview

i add three data on the graph,But the display curve is triangular.
I want to show it as a wave. how can i do? i see the sample,but it uses sin cos.

ui->customPlot->addGraph();
    ui->customPlot->graph(0)->setPen(QPen(Qt::blue));
    ui->customPlot->xAxis->setRange(0,1);
    //ui->customPlot->axisRect()->setupFullAxesBox();
    ui->customPlot->yAxis->setRange(0, 2);
    connect(&dataTimer, SIGNAL(timeout()), this, SLOT(timer_timeout()));
    dataTimer.start(0); 
    a=ui->textEdit_2->toPlainText();
    double b;
    b=a.toDouble();
    ui->customPlot->graph(0)->addData(0+i,a);
    ui->customPlot->replot();
    ui->customPlot->update();
    i=i+0.005;

more points.