如何使用 Qt/QwtPlot 设置固定轴间隔?

发布于 2024-08-06 14:26:04 字数 211 浏览 2 评论 0原文

我想在我的 Qt 应用程序中添加一个绘图小部件。 Qwt 通过 QwtPlot 提供了这样的小部件。但是,我找不到任何方法来仅显示整个数据范围的某一部分。

具体来说,我想显示频率范围从 0 到 2^14 的频谱。然而,对于 GUI,只有 ~20-20k Hz 的听觉范围才有意义,所以我只想显示该部分。
你知道有什么方法告诉 QwtPlot 这样做吗?

谢谢您的回答。

I want to have a plotting widget in my Qt application. Qwt provides 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

美羊羊 2024-08-13 14:26:04

简单的答案:使用 QwtPlot::setAxisScale()。

抱歉回答我自己的问题。

Simple answer: Use QwtPlot::setAxisScale().

sorry for answering my own question.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文