QCustomPlot Discussion and Comments

How to change Gird color?Return to overview

hi,i want to change xaxis and yaxis color and model of line?

EDIT:
how to change xAxis and yAxis Gird color ?

If you had done a little search on Google, you would have found something like :

Example to put the xAxis and yAxis grid in green :

this->xAxis->grid()->setPen(QPen(Qt::green));
this->yAxis->grid()->setPen(QPen(Qt::green));

with this as the ui->qCustomPlot (your instance of the QCustomPlot)