简体   繁体   English

ZedGraph:只是点

[英]ZedGraph: just the dots

I am new to ZedGraph . 我是ZedGraph的新手 So far I could draw curves and bars. 到目前为止,我可以绘制曲线和条形图。 How can I display just the dots without connecting them? 如何在不连接的情况下显示点?

I am using C# and Windows Forms . 我正在使用C#和Windows Forms

The Scatter Plot Demo from ZedGraph's site shows how to do it. ZedGraph网站的Scatter Plot演示展示了如何做到这一点。 There is an IsVisible property on the Line which you set to false to only show the points. 线上有一个IsVisible属性,您设置为false以仅显示点。

LineItem myCurve = myPane.AddCurve("Title", list, Color.Black, SymbolType.Diamond);
myCurve.Line.IsVisible = false;

I think your solution is on The Code Project . 我认为您的解决方案是在代码项目上 Have a look at the part where he talks about "The Fill class". 看看他谈到“填充课”的部分。 There is a dot-only example. 有一个只有点的例子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM