Issue with QwtPlotRescaler
Brought to you by:
rathmann
|
From: Sébastien P. <per...@ge...> - 2019-09-09 09:47:26
|
Hi all, I have an issue with the object QwtPlotRescaler. I have a QwtPlot to which I attach a QwtPlotRescaler. I let the default layout flag alignCanvasToAxis to false. I attach my own plot item for which I implement the method draw(). The point is that in the draw() method of my plot item the x and y scales given by the QwtScaleMap arguments are not equal as they should be (if I interpret well the way the rescaler should works). If I set the flag alignCanvasToAxis to true, then I get the same scale for x and y. I think the problem is that the method QwtPlotRescaler::rescale(const QSize &oldSize, const QSize &newSize) uses the size of the canvas to update the axes according to the reference axis, ignoring the actual size of the axes. Are there someone who find the same issue ? Cheers, Seb |