QWT:日志刻度和十年的每10个
我制作了一个带有X日志刻度和AY线性比例的QWTPLOT。 X轴范围从10到1000固定,即30年。一个添加了一个带有主要和小部门的网格。
问题:小滴答落在某些自动计算的位置上。
我想要的是:十年的10年(20,30,...,200,300,...)。
我试图在这里和那里找到各种示例,试图玩耍。但是我尝试的任何事情都没有改变任何事情。我敢肯定我错过了QWT文档中的某些内容...
QWT版本:6.1.4
I made a QwtPlot with an x log scale and a y linear scale. The x axis range is fixed from 10 to 1000, i.e. 3 decades. A added a grid with major and minor divisions.
The problem : the minor ticks fall at some automatically calculated positions.
What I want : a minor tick every 10th of a decade (20, 30, ..., 200, 300, ...).
I tried to play around, following various examples found here and there. But anything I tried didn't change a thing. I'm sure I missed something in Qwt's documentation...
Qwt version : 6.1.4
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现了。在QWTPLOT的子类中:
键是第三行,该线设置了X轴刻度。
由于某种原因,我很难理解该函数期望的参数:
,而且,请勿调用
qwtplot :: SetaxissCale()< /代码>!它重置所有默认设置。
希望它有帮助!
I figured it out. In a subclass of QwtPlot :
The key is the 3rd line, which sets the x axis scale.
For some reason, I had trouble to understand what arguments the function expects :
And also, don't call
QwtPlot::setAxisScale()
! It resets everything to default.Hope it helps !