View Full Version : Y-Axis Scale Spacing - Newbie Question

11th April 2008, 16:48
Hi. I've just started using Qwt, and I LOVE it! I have one minor problem that I have not been able to solve using the excellent documentation. I have 2 x-y plots lined up one above the other, with a single X-axis scale below the lower plot. But when the two Y-axis scales become different widths, the plots are no longer the same width and so the single X-axis scale on the lower plot doesn't match the upper plot any more. I have attached an example that hopefully shows what I am not explaining very well.

My question: is there some way to specify a fixed pixel width for the Y-axis scale values? I don't want to fix the width of the plot, because the containing widget can be resized. Any ideas?

14th April 2008, 07:57
See http://www.qtcentre.org/forum/f-qwt-23/t-qwt-using-qwtplotpicker-on-multiple-plots-9347.html


14th April 2008, 22:53
Thank you very much!

13th October 2009, 09:20
excuse me. i didn't find the valid information from the link. maybe i am too stupid. could you please let me know the key idea how to set the proportation between x-scale and pixel?

Thank you very much.