Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3867


Ignore:
Timestamp:
05/28/10 14:02:02 (14 years ago)
Author:
mkommend
Message:

corrected state information in ScatterPlotView (ticket #1020)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/ScatterPlotView.cs

    r3764 r3867  
    5858      this.chart.Series[TRAINING_SERIES].LegendText = TRAINING_SERIES;
    5959      this.chart.Series[TRAINING_SERIES].ChartType = SeriesChartType.FastPoint;
     60      this.chart.Series[TRAINING_SERIES].Points.Add(1.0);
    6061
    6162      this.chart.Series.Add(TEST_SERIES);
     
    110111          this.UpdateSeries();
    111112          if (!this.chart.Series.Any(s => s.Points.Count > 0))
    112             this.ToggleSeriesData(this.chart.Series[TRAINING_SERIES]);
    113           else
    114113            this.ClearChart();
    115114        }
     
    139138        int testStart = Content.ProblemData.TestSamplesStart.Value;
    140139        int testEnd = Content.ProblemData.TestSamplesEnd.Value;
    141         if (this.chart.Series[ALL_SERIES].Points.Count > 0)
    142           this.chart.Series[ALL_SERIES].Points.DataBindXY(Content.EstimatedValues.ToArray(), "",
    143             dataset[targetVariableName], "");
     140        if(this.chart.Series[ALL_SERIES].Points.Count > 0)
     141        this.chart.Series[ALL_SERIES].Points.DataBindXY(Content.EstimatedValues.ToArray(), "",
     142          dataset[targetVariableName], "");
    144143        if (this.chart.Series[TRAINING_SERIES].Points.Count > 0)
    145           this.chart.Series[TRAINING_SERIES].Points.DataBindXY(Content.EstimatedTrainingValues.ToArray(), "",
    146             dataset.GetVariableValues(targetVariableName, trainingStart, trainingEnd), "");
     144        this.chart.Series[TRAINING_SERIES].Points.DataBindXY(Content.EstimatedTrainingValues.ToArray(), "",
     145          dataset.GetVariableValues(targetVariableName, trainingStart, trainingEnd), "");
    147146        if (this.chart.Series[TEST_SERIES].Points.Count > 0)
    148           this.chart.Series[TEST_SERIES].Points.DataBindXY(Content.EstimatedTestValues.ToArray(), "",
    149             dataset.GetVariableValues(targetVariableName, testStart, testEnd), "");
     147        this.chart.Series[TEST_SERIES].Points.DataBindXY(Content.EstimatedTestValues.ToArray(), "",
     148          dataset.GetVariableValues(targetVariableName, testStart, testEnd), "");
    150149
    151150        double max = Math.Max(Content.EstimatedValues.Max(), dataset.GetMax(targetVariableName));
Note: See TracChangeset for help on using the changeset viewer.