Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何修改 ZedGraphControl 的 GraphPane 中的现有线/曲线?
我使用以下内容获取该行的数据:
CurveList lineData = zgcControl.GraphPane.CurveList[i];
但是在那之后我对如何处理 CurveList 感到困惑。我想修改曲线列表的内容,但我不知道怎么做。
有什么帮助吗?谢谢!
你想修改什么?
假设您想在 Y 轴上将曲线向上移动 100 个单位,它看起来像这样:
CurveList lineData = zedGraphControl1.GraphPane.CurveList; CurveItem curve = lineData[0]; for (int i = 0; i < curve.Points.Count; i++ ) { PointPair point = curve.Points[i]; point.Y += 100; }