Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/22/16 12:42:09 (8 years ago)
Author:
pfleck
Message:

#2709 Added an option for the preprocessing scatterplot to use a color gradient instead of the chart color palette.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/ScatterPlotContent.cs

    r14511 r14521  
    7272      } else {
    7373        var groupValues = PreprocessingData.GetValues<double>(PreprocessingData.GetColumnIndex(variableNameGroup));
    74         var data = points.Zip(groupValues, (p, g) => new { p, g });
    75         foreach (var groupValue in groupValues.Distinct()) {
     74        var data = points.Zip(groupValues, (p, g) => new { p, g })
     75          .Where(x => !double.IsNaN(x.p.X) && !double.IsNaN(x.p.Y) && !double.IsNaN(x.g) && !double.IsInfinity(x.p.X) && !double.IsInfinity(x.p.Y) && !double.IsInfinity(x.g))
     76          .ToList();
     77
     78        foreach (var groupValue in groupValues.Distinct().OrderBy(g => g)) {
    7679          var values = data.Where(x => x.g == groupValue).Select(v => v.p);
    7780          var row = new ScatterPlotDataRow(string.Format("{0} ({1})", variableNameGroup, groupValue), "", values) {
     81            Name = groupValue.ToString("R"),
    7882            VisualProperties = { PointSize = 6 }
    7983          };
Note: See TracChangeset for help on using the changeset viewer.