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.
Location:
branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression
Files:
4 edited

Legend:

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

    r13850 r13853  
    8181      this.gradientChart.Name = "gradientChart";
    8282      this.gradientChart.ShowCursor = false;
    83       this.gradientChart.ShowLegend = true;
    84       this.gradientChart.ShowXAxisLabel = false;
    85       this.gradientChart.ShowYAxisLabel = true;
     83      this.gradientChart.ShowLegend = false;
    8684      this.gradientChart.Size = new System.Drawing.Size(715, 376);
    8785      this.gradientChart.TabIndex = 0;
  • 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    }
  • branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionTargetResponseGradientView.Designer.cs

    r13850 r13853  
    5050      this.variableListView.Location = new System.Drawing.Point(3, 16);
    5151      this.variableListView.Name = "variableListView";
    52       this.variableListView.Size = new System.Drawing.Size(163, 482);
     52      this.variableListView.Size = new System.Drawing.Size(163, 503);
    5353      this.variableListView.TabIndex = 0;
    5454      this.variableListView.UseCompatibleStateImageBehavior = false;
     
    7777      this.yAxisConfigGroupBox.Location = new System.Drawing.Point(0, 0);
    7878      this.yAxisConfigGroupBox.Name = "yAxisConfigGroupBox";
    79       this.yAxisConfigGroupBox.Size = new System.Drawing.Size(169, 98);
     79      this.yAxisConfigGroupBox.Size = new System.Drawing.Size(169, 77);
    8080      this.yAxisConfigGroupBox.TabIndex = 2;
    8181      this.yAxisConfigGroupBox.TabStop = false;
     
    9797      //
    9898      this.automaticYAxisCheckBox.AutoSize = true;
    99       this.automaticYAxisCheckBox.Location = new System.Drawing.Point(6, 72);
     99      this.automaticYAxisCheckBox.Location = new System.Drawing.Point(49, -1);
    100100      this.automaticYAxisCheckBox.Name = "automaticYAxisCheckBox";
    101101      this.automaticYAxisCheckBox.Size = new System.Drawing.Size(73, 17);
     
    108108      this.densityGroupBox.Controls.Add(this.densityComboBox);
    109109      this.densityGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
    110       this.densityGroupBox.Location = new System.Drawing.Point(0, 98);
     110      this.densityGroupBox.Location = new System.Drawing.Point(0, 77);
    111111      this.densityGroupBox.Name = "densityGroupBox";
    112112      this.densityGroupBox.Size = new System.Drawing.Size(169, 49);
     
    156156      this.variableGroupBox.Controls.Add(this.variableListView);
    157157      this.variableGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
    158       this.variableGroupBox.Location = new System.Drawing.Point(0, 147);
     158      this.variableGroupBox.Location = new System.Drawing.Point(0, 126);
    159159      this.variableGroupBox.Name = "variableGroupBox";
    160       this.variableGroupBox.Size = new System.Drawing.Size(169, 501);
     160      this.variableGroupBox.Size = new System.Drawing.Size(169, 522);
    161161      this.variableGroupBox.TabIndex = 1;
    162162      this.variableGroupBox.TabStop = false;
  • branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionTargetResponseGradientView.cs

    r13850 r13853  
    160160        ShowLegend = false,
    161161        ShowCursor = true,
    162         ShowXAxisLabel = true,
    163         ShowYAxisLabel = true,
    164162        YAxisTicks = 5,
    165163      };
Note: See TracChangeset for help on using the changeset viewer.