PDA

View Full Version : Lining up 3 curves of a QwtPlot



pihentagy
16th February 2011, 21:04
Hi all!

I'm new to Qwt (considering using it), but I have a problem with it:

I'd like to display 3 curves (they have different scales). The time axis is common. AFAIK QwtPlot only supports 2 different y-axis. Putting 2 or 3 QwtPlots above each other is not perfect, because the scaling on different y axis take up different space (see linked image).

So is there a solution to show 3 curves with common x-axis?

http://min.us/jl57Rk.png

Uwe
18th February 2011, 06:58
You can line up plots using QwtAbstractScaleDraw::setMinimumExtent() - read the archive for details, this has been asked many, many times. In Qwt 6 you find the ( unfinished ) plotmatrix example, that might help.

Uwe

pihentagy
18th February 2011, 14:38
Thanks for the pointer, found your answer here: http://www.qtcentre.org/threads/30655-QwtPlot-Canvas-Size-Hint?p=143257#post143257