QCustomPlot Discussion and Comments

How to fix width of axis area ?Return to overview

Hi ! How to fix width of axis area ? which means the width of axis line to plot border, as it changes with tick labels, even numberformat and precision has been set .

do you mean

plot->axisRect()->setAutoMargins(QCP::msNone);
plot->axisRect()->setMargins(QMargins(100, 100, 100 ,100));

yeah, but there is also a problem,
when the margin is fixed, the tick label may appear incomplete in some cases.

ask for official support