Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8580


Ignore:
Timestamp:
09/05/12 16:22:28 (12 years ago)
Author:
gkronber
Message:

#1902: fixed coloring in line chart for GPR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/GaussianProcessRegressionSolutionLineChartView.cs

    r8562 r8580  
    115115        this.ToggleSeriesData(this.chart.Series[ESTIMATEDVALUES_ALL_SERIES_NAME]);
    116116
     117
    117118        // the series have been added in different order than in the normal line chart
    118119        // --> adapt coloring;
    119         var s1Color = chart.Series[0].Color;
    120         var s2Color = chart.Series[1].Color;
    121         var s3Color = chart.Series[2].Color;
    122         var s4Color = chart.Series[3].Color;
    123 
    124         chart.Series[3].Color = s1Color;
    125         chart.Series[0].Color = s2Color;
    126         chart.Series[1].Color = s3Color;
    127         chart.Series[2].Color = s4Color;
     120        chart.ApplyPaletteColors();
     121        this.chart.Palette = ChartColorPalette.None;
     122        var s0Color = chart.Series[0].Color;
     123        var s1Color = chart.Series[1].Color;
     124        var s2Color = chart.Series[2].Color;
     125        var s3Color = chart.Series[3].Color;
     126        this.chart.PaletteCustomColors = new Color[] { s1Color, s2Color, s3Color, s0Color };
    128127
    129128        UpdateCursorInterval();
     
    282281            mean = Content.EstimatedTestValues.ToArray();
    283282            s2 = Content.EstimatedTestVariance.ToArray();
    284             lower = mean.Zip(s2, (m, s) => m - s).ToArray();
    285             upper = mean.Zip(s2, (m, s) => m + s).ToArray();
     283            lower = mean.Zip(s2, (m, s) => m - 1.96 * Math.Sqrt(s)).ToArray();
     284            upper = mean.Zip(s2, (m, s) => m + 1.96 * Math.Sqrt(s)).ToArray();
    286285            break;
    287286        }
Note: See TracChangeset for help on using the changeset viewer.