qwt 绘图曲线轴不可见
我正在使用 qwt 绘图曲线来绘制曲线。 x 轴和 y 轴不可见,只有曲线可见。 如何显示轴并显示一些第一个、最后一个和中间值 轴的刻度间隔
I am using qwt plot curve to draw curve.
the x axis and the y axis are not visible, only the curve is visible.
How to show the axis with showing some first, last and middle values in
the scale interval of the axis
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我给你举一个小例子:
I give you a small example:
1)你应该有一些 QwtPlot 对象。我假设您想绘制 xBottom 和 yLeft 轴。
如果您使用 QtDesigner 和 QwtPlot 小部件,那么您已经拥有它了。您可以使用 ui->plot 访问它
2) 您应该有
3) 也许您想调用 replot
1) You should have some QwtPlot object. I assume you want to draw xBottom and yLeft axes.
You already have it if you were using QtDesigner and QwtPlot widget with it. You can access it with ui->plot
2) You should have
3) Probably you want to call replot