**
QCustomplot对多条波形颜色、宽度设置
**
for(int i=0;i<15;i++)
{
QPen pen;
customPlot->addGraph();
customPlot->graph(i)->setName("graph1");
customPlot->graph(i)->setPen(QPen(QColor(255-10*i,50+10*i,15*i),5));
}
或者
QPen pen;
pen.setWidth(6);//线宽
pen.setColor(Qt::white);//白色
customPlot->graph(0)->setPen(pen);
这种方法对多条曲线不适用