ZedGraph SetScaleToDefault 函数?
我在刷新 ZedGraphControl 时遇到问题。基本上,当我用全新的值刷新图表时,比例会变得混乱。有时它变得太小,有时又太大。这是我在刷新时所做的事情:
zgcControlAmp.AxisChange();
zgcControlAmp.Refresh();
当比例混乱时,我需要右键单击->SetScaleToDefault来修复视图,但有时它仍然会混乱。然而,当使用干净的图表(第一次运行)时,一切都很好。
有什么建议可以解决这个问题吗?
I am having trouble when refreshing ZedGraphControl. Basically, what happens is that the scale gets messed up when I refresh the graph with completely new values. Sometimes it becomes too small, sometimes too big. Here is what I do when refreshing:
zgcControlAmp.AxisChange();
zgcControlAmp.Refresh();
When the scale gets messed up, I need to RightClick->SetScaleToDefault to fix the view, but sometimes it still messes up. When working with a clean graph (first run) however, all is good.
Any tips how to work around this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试。
刷新值后
Try
after refreshing the values.
试试这个:
Where
zgcControlAmp.GraphPane
可以替换为您正在使用的任何 GraphPane。(这与右键单击 -> SetScaleToDefault 时发生的函数相同)
Try this:
Where
zgcControlAmp.GraphPane
can be replaced with whatever GraphPane you are working with.(This is the same function that occurs when you RightClick->SetScaleToDefault)