Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/19/16 15:31:30 (8 years ago)
Author:
pfleck
Message:

#2597

  • Added GradientChartConfigurationDialog to allow setup x/y axis and drawing steps.
  • Added "calculating pending"-icon only after 100ms to avoid flickering.
  • Fixed some small issues.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionGradientView.cs

    r13850 r13853  
    110110      tableLayoutPanel.ResumeRepaint(true);
    111111
     112      // Init Y-axis range
     113      var problemData = Content.ProblemData;
     114      double min = double.MaxValue, max = double.MinValue;
     115      var trainingTarget = problemData.Dataset.GetDoubleValues(problemData.TargetVariable, problemData.TrainingIndices);
     116      foreach (var t in trainingTarget) {
     117        if (t < min) min = t;
     118        if (t > max) max = t;
     119      }
     120      double range = max - min;
     121      const double scale = 1.0 / 3.0;
     122      double axisMin, axisMax, axisInterval;
     123      ChartUtil.CalculateAxisInterval(min - scale * range, max + scale * range, 5, out axisMin, out axisMax, out axisInterval);
     124      gradientChart.FixedYAxisMin = axisMin;
     125      gradientChart.FixedYAxisMax = axisMax;
     126
    112127      trackbars.First().Checked = true;
    113128    }
Note: See TracChangeset for help on using the changeset viewer.