开发者

How to set fixed axis intervals with Qt/QwtPlot?

开发者 https://www.devze.com 2022-12-08 07:51 出处:网络
I want to have a plotting widget in my Qt application. Qwt pro开发者_开发百科vides such a widget with QwtPlot. However, I can\'t find any way to only display a certain part of the complete range of my

I want to have a plotting widget in my Qt application. Qwt pro开发者_开发百科vides such a widget with QwtPlot. However, I can't find any way to only display a certain part of the complete range of my data.

Specifically, I want to display spectrums with a frequency range from 0 to 2^14. For the GUI however, only the audible range from ~20-20k Hz is of significance, so I only want to display that part.

Do you know of any way of telling QwtPlot to do that?

Thank you for your answers.


Simple answer: Use QwtPlot::setAxisScale().

sorry for answering my own question.

0

精彩评论

暂无评论...
验证码 换一张
取 消