Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/16/16 14:47:38 (7 years ago)
Author:
pfleck
Message:

#2709

  • Fixed initial point size for scatterplots.
  • Reuse the visual properties of the old data row if a single variable is changed in the ScatterPlotSingleView
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/ScatterPlotSingleView.cs

    r14474 r14495  
    8888        var groupVariable = (string)comboBoxGroup.SelectedItem;
    8989        ScatterPlot scatterPlot = Content.CreateScatterPlot(xVariable, yVariable, groupVariable);
     90        foreach (var row in scatterPlot.Rows)
     91          row.VisualProperties.PointSize = 6;
    9092        var vp = scatterPlot.VisualProperties;
    9193        vp.Title = string.Empty;
     
    115117
    116118      foreach (var x in newPlot.Rows.Zip(oldPlot.Rows, (nr, or) => new { nr, or })) {
    117         x.nr.VisualProperties.PointSize = x.or.VisualProperties.PointSize;
    118         x.nr.VisualProperties.PointStyle = x.or.VisualProperties.PointStyle;
    119         x.nr.VisualProperties.Color = x.or.VisualProperties.Color;
     119        var newVisuapProperties = (ScatterPlotDataRowVisualProperties)x.or.VisualProperties.Clone();
     120        newVisuapProperties.DisplayName = x.nr.VisualProperties.DisplayName;
     121        x.nr.VisualProperties = newVisuapProperties;
    120122      }
    121123    }
     
    133135
    134136      foreach (var x in newPlot.Rows.Zip(oldPlot.Rows, (nr, or) => new { nr, or })) {
    135         x.nr.VisualProperties.PointSize = x.or.VisualProperties.PointSize;
    136         x.nr.VisualProperties.PointStyle = x.or.VisualProperties.PointStyle;
    137         x.nr.VisualProperties.Color = x.or.VisualProperties.Color;
     137        var newVisuapProperties = (ScatterPlotDataRowVisualProperties)x.or.VisualProperties.Clone();
     138        newVisuapProperties.DisplayName = x.nr.VisualProperties.DisplayName;
     139        x.nr.VisualProperties = newVisuapProperties;
    138140      }
    139141    }
Note: See TracChangeset for help on using the changeset viewer.