I would like to know how to get the size of a plot both of each axis and that of the number of pixels wide and tall.
Thanks
I would like to know how to get the size of a plot both of each axis and that of the number of pixels wide and tall.
Thanks
The current range of an axis can be retrieved with QCPAxis::range()
, and those plot coordinates can be transformed to pixel coordinates on the QCustomPlot surface with QCPAxis::coordToPixel
.
Please refer to the documentation of that function for details.