Is there any way of showing zeroline in QCustomPlot while hiding grid? I have tried hiding grid with following line:
ui->customPlot->xAxis->grid()->setVisible(false);
ui->customPlot->yAxis->grid()->setVisible(false);
But this also hides the zerolines. I need to keep zerolines visible.
Set Qt::NoPen
to QCPGrid::setPen
/setSubGridPen
, but not setZeroLinePen
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With