QCustomPlot Discussion and Comments

How to display the yAxis2's subgrid?Return to overview

Recently I have developed an plot with QCustomPlot. I use yAxis and yAxis2 as two vertical axes, and their ticks are different. For yAxis, I use plot(it's an object of QCustomPlot) to set the subgrid visible:plot->yAxis2->grid()->setSubGridVisible(true);. But for yAxis2, I used the same statement, while the yAxis2's subgrid does not display!!! What is neccessary for the subgrids to show? Thank you for your help~

The subgrid is an addition to the regular grid (at minor tick intervals). If the grid is invisible, the subgrid is also. So yAxis2->grid()->setVisible(true);.

Perfect!!! Thanks o lot~