I want use QwtPlotZoomer to zoom only X-axis, and leave Y-Axis fixed, Or to zoom Y-axis, and leave X-Axis fixed.
any idea how to do this?
Thanks.
Abderrahim
I want use QwtPlotZoomer to zoom only X-axis, and leave Y-Axis fixed, Or to zoom Y-axis, and leave X-Axis fixed.
any idea how to do this?
Thanks.
Abderrahim
If you are using only one x and one y axis you could assign the unused opposite one. F.e when using xBottom/yLeft and you want to zoom yLeft only you would do:
If your situation is more complicated you might have to overload QwtPlotZoomer::rescale( const QRectF & ), by adjusting a copy of the code you find in qwt_plot_zoomer.cpp.Qt Code:
To copy to clipboard, switch view to plain text mode
Uwe
Abderrahim (8th January 2016)
Many thanks Uwe,
My Plot has more y axis and one x-axis. I think your second proposal is the best way for my problem .
Nice weekend
Abderrahim
Hello Uwe,
please help me with an example to use qwtplotzoomer for a plot with more one y-axis (y-multi-axis).
You have to use several zoomers, but only one of them with a rubberband. F.e like in the bode example.
Uwe
Abderrahim (12th January 2016)
Bookmarks