private void Draw(IEnumerable <float> values, string description) { var line = new LineGraph(); train_chart.Content = line; line.Stroke = new SolidColorBrush(Color.FromRgb(255, 0, 0)); line.StrokeThickness = 2; line.Description = description; line.PlotY(values); }
private void DrawChild(IEnumerable <float> values, string description) { var line = new LineGraph(); Plot plot = train_chart.Content as Plot; if (plot.Children.Count > 1) { plot.Children.RemoveAt(1); } plot.Children.Add(line); line.Stroke = new SolidColorBrush(Color.FromRgb(0, 0, 255)); line.StrokeThickness = 2; line.Description = description; line.PlotY(values); }
private void AddPlot(Int16[] plotBuf) { _lineGraphs.PlotY(plotBuf); }