ZedGraph 手动 Set Scale to Default 功能
Posted Thomas会写字
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ZedGraph 手动 Set Scale to Default 功能相关的知识,希望对你有一定的参考价值。
Graphpane myPane = zedGraphControl1.GraphPane;
zedGraphControl1.ZoomOutAll(myPane);
zedGraphControl1.Refresh();
Graphics g = zedGraphCtrl.CreateGraphics();
myPane.XAxis.ResetAutoScale(myPane, g);
myPane.X2Axis.ResetAutoScale(myPane, g);
foreach (YAxis axis in myPane.YAxisList)
axis.ResetAutoScale(myPane, g);
foreach (Y2Axis axis in myPane.Y2AxisList)
axis.ResetAutoScale(myPane, g);
以上是关于ZedGraph 手动 Set Scale to Default 功能的主要内容,如果未能解决你的问题,请参考以下文章