Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12173 for trunk/sources


Ignore:
Timestamp:
03/10/15 10:49:14 (10 years ago)
Author:
ascheibe
Message:

#2354 fixed bug in HistogramControl when the interval is zero

File:
1 edited

Legend:

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

    r12145 r12173  
    167167        overallMax = Math.Max(overallMax, maxValue);
    168168        overallMin = Math.Min(overallMin, minValue);
    169       }
    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];
     169
     170        chart.ApplyPaletteColors();
    178171        CalculateDensity(histogramSeries, point.Value, bandwith);
    179 
    180         i++;
    181       }
    182 
     172      }
    183173
    184174      ChartArea chartArea = chart.ChartAreas[0];
Note: See TracChangeset for help on using the changeset viewer.