ZedGraph curve with multiple segments

梦想的初衷 提交于 2019-12-11 12:06:55

问题


Is it possible to draw a curve which consists of multiple segments? For example, I have 4 points and I need to plot curve with segments from point1 to point2 and from point3 to point4, with no connection between point2 and point3. How can I do this?


回答1:


One idea that comes to mind is to plot two different curves.

1) Create two ZedGraph.PointPairList items, one with Point1 and Point2 and the other with Point3 and Point4.

2) Use ZedGraph.GraphPane.AddCurve to add two curves, using the overloaded method that takes a PointPairList/iPointList.



来源:https://stackoverflow.com/questions/12503746/zedgraph-curve-with-multiple-segments

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!