QCustomPlot Discussion and Comments

Hide axes, marginReturn to overview

Hello!
I started using QCustomPlot, which has a nice graph plotting API. I create a custom plot and add it to a layout. Because I dont need the x-axis, I hide it with customPlot->xAxis->setVisible(false);
I would like to use the whole vertical space for the graph but even with customPlot->setContentsMargins(0,0,0,0); there is a border of aprox. 15px on top and bottom of the plot.
My question is how to draw the graph without margins.
Best,
Roger

Ok I figured it out (should have seen it in the tutorials!):

customplot->axisRect()->setAutoMargins(QCP::msNone);
customplot->axisRect()->setMargins(QMargins(0,0,0,0));

Great Job Emanuel!
Best,
Roger

Thanks for reporting back with the answer :)