-
rotating a qwtplot
Hello everybody,
I started recently to work with qt/qwt and I would have one question about qwtplot.
I want to design a widget made of three objects:
- a QGraphicsObject object that will display the values of a 2D matrix
- a first qwtplot object at the bottom of the QGraphicsObject that will show a plot of the integration of the matrix over its Y axis
- a second qwtplot object on the right of the QGraphicsObject that will show a plot of the integration of the matrix over its X axis
I would like to rotate the second qwtplot (the one on the right) so as its X axis is points to the bottom and its Y axis points to the right.
Something like:
---------------> Y
|
|
|
|
V
X
Would you have any idea how to achieve this ? I tried to play a bit with QwtScaleEngine but I failed up to now to make it works using that way.
thanks a lot
Eric
-
Re: rotating a qwtplot
X/Y are just names, why not simply swapping the coordinates of the samples ( points ).
Uwe
-
Re: rotating a qwtplot
thanks Uwe,
thanks for the hint. It seemed simpler to me to directly rotate the plot but as this may not be possible under qwt, your solution is definitely one way to go.
Eric