Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 private void AddPlot(Int16[] plotBuf)
 {
     _lineGraphs.PlotY(plotBuf);
 }