- Timestamp:
- 04/29/15 16:39:46 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionErrorCharacteristicsCurveView.cs
r12012 r12365 48 48 chart.ChartAreas[0].AxisX.Title = "Absolute Error"; 49 49 chart.ChartAreas[0].AxisX.Minimum = 0.0; 50 chart.ChartAreas[0].AxisX.Maximum = 1.0;50 chart.ChartAreas[0].AxisX.Maximum = 0.0; 51 51 chart.ChartAreas[0].AxisX.IntervalAutoMode = IntervalAutoMode.VariableCount; 52 52 chart.ChartAreas[0].CursorX.Interval = 0.01; … … 118 118 solutionSeries.ChartType = SeriesChartType.FastLine; 119 119 var residuals = GetResiduals(GetOriginalValues(), GetEstimatedValues(solution)); 120 121 chart.ChartAreas[0].AxisX.Maximum = Math.Ceiling(residuals.Max()); 120 121 122 var maxValue = residuals.Max(); 123 if (maxValue >= chart.ChartAreas[0].AxisX.Maximum) { 124 double scale = Math.Pow(10, Math.Floor(Math.Log10(maxValue))); 125 var maximum = scale * (1 + (int)(maxValue / scale)); 126 chart.ChartAreas[0].AxisX.Maximum = maximum; 127 } 122 128 chart.ChartAreas[0].CursorX.Interval = residuals.Min() / 100; 123 129
Note: See TracChangeset
for help on using the changeset viewer.