Пример #1
0
 private void ClearPlotSingle()
 {
     if (DataSeriesCollection.Any())
     {
         DataSeriesCollection.RemoveAt(DataSeriesCollection.Count - 1);
         //Clear the PlotSeriesCollection, it will be recreated with the plot
         PlotSeriesCollection.Clear();
         Labels.RemoveAt(Labels.Count - 1);
         PlotTitles.RemoveAt(PlotTitles.Count - 1);
         PlotModel.Title = "";
     }
 }
Пример #2
0
 private void ClearPlot()
 {
     DataSeriesCollection.Clear();
     PlotSeriesCollection.Clear();
     Labels.Clear();
     PlotTitles.Clear();
     PlotModel.Title = "";
     foreach (var axis in PlotModel.Axes)
     {
         axis.Reset();
     }
 }
Пример #3
0
        /// <summary>
        /// Updates the plot.
        /// </summary>
        private void UpdatePlotSeries()
        {
            PlotModel.Series.Clear();
            PlotSeriesCollection.Clear();  //clear the PlotSeriesCollection because it will recreate each time
            ShowComplexPlotToggle = false; // do not show the complex toggle until a complex plot is plotted

            foreach (var series in DataSeriesCollection)
            {
                ConstuctPlot(series);
            }
            CalculateMinMax();
            PlotModel.IsLegendVisible = !_HideKey;
            PlotModel.InvalidatePlot(true);
        }