QCustomPlot Discussion and Comments

How to get the width of the area in which the graphics are drawn?Return to overview

If I use pPlot->axisRect ()->width (); I get the width of the desired area along with the width of the axes.

you have outer rect and inner rect. Getting the width with axisRect->width() gives you the inner rect without axis size (margin). Getting it with axisRect->outerRect()->width() gives you the width including axis labels and so on