Changeset 14472 for branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content
- Timestamp:
- 12/09/16 15:59:26 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing/3.4/Content/ScatterPlotContent.cs
r14467 r14472 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using HeuristicLab.Analysis; 25 26 using HeuristicLab.Common; 27 using HeuristicLab.Visualization.ChartControlsExtensions; 26 28 27 29 namespace HeuristicLab.DataPreprocessing { … … 41 43 IList<double> xValues = PreprocessingData.GetValues<double>(PreprocessingData.GetColumnIndex(variableNameX)); 42 44 IList<double> yValues = PreprocessingData.GetValues<double>(PreprocessingData.GetColumnIndex(variableNameY)); 45 46 double axisMin, axisMax, axisInterval; 47 try { 48 ChartUtil.CalculateOptimalAxisInterval(xValues.Min(), xValues.Max(), out axisMin, out axisMax, out axisInterval); 49 scatterPlot.VisualProperties.XAxisMinimumAuto = false; 50 scatterPlot.VisualProperties.XAxisMaximumAuto = false; 51 scatterPlot.VisualProperties.XAxisMinimumFixedValue = axisMin; 52 scatterPlot.VisualProperties.XAxisMaximumFixedValue = axisMax; 53 } catch (ArgumentOutOfRangeException) { } // missing values lead to NaNs 54 try { 55 ChartUtil.CalculateOptimalAxisInterval(yValues.Min(), yValues.Max(), out axisMin, out axisMax, out axisInterval); 56 scatterPlot.VisualProperties.YAxisMinimumAuto = false; 57 scatterPlot.VisualProperties.YAxisMaximumAuto = false; 58 scatterPlot.VisualProperties.YAxisMinimumFixedValue = axisMin; 59 scatterPlot.VisualProperties.YAxisMaximumFixedValue = axisMax; 60 } catch (ArgumentOutOfRangeException) { } // missing values lead to NaNs 61 43 62 if (variableNameColor == null || variableNameColor == "-") { 44 63 List<Point2D<double>> points = new List<Point2D<double>>();
Note: See TracChangeset
for help on using the changeset viewer.