Changeset 15431 for branches/DataPreprocessing Cleanup/HeuristicLab.DataPreprocessing/3.4/Content/ScatterPlotContent.cs
- Timestamp:
- 10/25/17 12:38:12 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing Cleanup/HeuristicLab.DataPreprocessing/3.4/Content/ScatterPlotContent.cs
r15309 r15431 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using HeuristicLab.Analysis; … … 50 51 #endregion 51 52 52 public static ScatterPlot CreateScatterPlot(IFilteredPreprocessingData preprocessingData, string variableNameX, string variableNameY, 53 string variableNameGroup = "-", LegendOrder legendOrder = LegendOrder.Alphabetically) { 53 public static ScatterPlot CreateScatterPlot(IFilteredPreprocessingData preprocessingData, string variableNameX, string variableNameY, string variableNameGroup = "-", LegendOrder legendOrder = LegendOrder.Alphabetically) { 54 54 ScatterPlot scatterPlot = new ScatterPlot(); 55 55 56 varxValues = preprocessingData.GetValues<double>(preprocessingData.GetColumnIndex(variableNameX));57 varyValues = preprocessingData.GetValues<double>(preprocessingData.GetColumnIndex(variableNameY));56 IList<double> xValues = preprocessingData.GetValues<double>(preprocessingData.GetColumnIndex(variableNameX)); 57 IList<double> yValues = preprocessingData.GetValues<double>(preprocessingData.GetColumnIndex(variableNameY)); 58 58 59 59 var points = xValues.Zip(yValues, (x, y) => new Point2D<double>(x, y)).ToList();
Note: See TracChangeset
for help on using the changeset viewer.