Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/05/15 17:02:32 (9 years ago)
Author:
ascheibe
Message:

#2351 the histogram and density curves now have the same color

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/HistogramControl.cs

    r12143 r12145  
    141141        Series histogramSeries = new Series(point.Key);
    142142        chart.Series.Add(histogramSeries);
    143 
    144143        double minValue = point.Value.Min();
    145144        double maxValue = point.Value.Max();
     
    166165        histogramSeries["PointWidth"] = "1";
    167166
    168         CalculateDensity(histogramSeries, point.Value, bandwith);
    169 
    170167        overallMax = Math.Max(overallMax, maxValue);
    171168        overallMin = Math.Min(overallMin, minValue);
    172169      }
     170
     171      chart.ApplyPaletteColors();
     172
     173      int i = 0;
     174      foreach (var point in points) {
     175        if (!point.Value.Any()) continue;
     176
     177        var histogramSeries = chart.Series[i];
     178        CalculateDensity(histogramSeries, point.Value, bandwith);
     179
     180        i++;
     181      }
     182
    173183
    174184      ChartArea chartArea = chart.ChartAreas[0];
     
    209219
    210220      Series newSeries = new Series(densitySeriesName);
     221      newSeries.Color = series.Color;
    211222      newSeries.ChartType = SeriesChartType.FastLine;
    212223      newSeries.BorderWidth = 2;
Note: See TracChangeset for help on using the changeset viewer.