我有实时数据,我想用zedgraph绘制它。我写这些代码,但它没有绘制图表。
public void AddPointToGraph(double x, double y)
{
GraphPane gp = zedGraphControl1.GraphPane;
PointPairList pairlist1 = new PointPairList();
pairlist.Add(x,y);
LineItem linus = gp.AddCurve("Label", pairlist, Color.Red , SymbolType.None);
linus.Symbol.Type = SymbolType.None;
linus.Line.Width = 1.5f;
zedGraphControl1.GraphPane.IsFontsScaled = false;
zedGraphControl1.AxisChange();
}
我在时间函数中调用AddPointToGraph()
func并给它们x和y双值,但似乎没有。