Changeset 16048
- Timestamp:
- 08/06/18 14:08:48 (6 years ago)
- Location:
- stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk merged: 15754-15755 /trunk/sources merged: 15621-15623,15672
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Optimization.Views
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Optimization.Views (added) merged: 15754-15755 /trunk/sources/HeuristicLab.Optimization.Views merged: 15621-15623,15672
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.Designer.cs
r16047 r16048 113 113 // chart 114 114 // 115 this.chart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 116 | System.Windows.Forms.AnchorStyles.Left) 115 this.chart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 116 | System.Windows.Forms.AnchorStyles.Left) 117 117 | System.Windows.Forms.AnchorStyles.Right))); 118 118 chartArea1.Name = "ChartArea1"; … … 191 191 // statisticsGroupBox 192 192 // 193 this.statisticsGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 194 | System.Windows.Forms.AnchorStyles.Left) 193 this.statisticsGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 194 | System.Windows.Forms.AnchorStyles.Left) 195 195 | System.Windows.Forms.AnchorStyles.Right))); 196 196 this.statisticsGroupBox.Controls.Add(this.statisticsMatrixView); -
stable/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.cs
r16047 r16048 280 280 double? yValue; 281 281 282 if (!xAxisComboBox.DroppedDown) 283 this.xAxisValue = (string)xAxisComboBox.SelectedItem; 284 if (!yAxisComboBox.DroppedDown) 285 this.yAxisValue = (string)yAxisComboBox.SelectedItem; 282 this.xAxisValue = (string)xAxisComboBox.SelectedItem; 283 this.yAxisValue = (string)yAxisComboBox.SelectedItem; 286 284 287 285 xValue = GetValue(run, this.xAxisValue); … … 386 384 UpdateDataPoints(); 387 385 } 386 388 387 private void UpdateAxisLabels() { 389 388 Axis xAxis = this.chart.ChartAreas[BoxPlotChartAreaName].AxisX; 390 389 Axis yAxis = this.chart.ChartAreas[BoxPlotChartAreaName].AxisY; 391 390 int axisDimensionCount = Enum.GetNames(typeof(AxisDimension)).Count(); 392 //mkommend: combobox.SelectedIndex could not be used as this changes during hovering over possible values 393 var xSAxisSelectedIndex = xAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(xAxisValue); 394 var ySAxisSelectedIndex = yAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(yAxisValue); 395 SetCustomAxisLabels(xAxis, xSAxisSelectedIndex - axisDimensionCount); 396 SetCustomAxisLabels(yAxis, ySAxisSelectedIndex - axisDimensionCount); 397 if (xAxisValue != null) 398 xAxis.Title = xAxisValue; 399 if (yAxisValue != null) 400 yAxis.Title = yAxisValue; 391 392 SetCustomAxisLabels(xAxis, xAxisComboBox.SelectedIndex - axisDimensionCount); 393 SetCustomAxisLabels(yAxis, yAxisComboBox.SelectedIndex - axisDimensionCount); 394 395 xAxis.Title = (string)xAxisComboBox.SelectedItem; 396 yAxis.Title = (string)yAxisComboBox.SelectedItem; 401 397 } 402 398 … … 406 402 407 403 private void SetCustomAxisLabels(Axis axis, int dimension) { 404 if (Content == null) { return; } 405 if (!Content.Any()) { return; } 406 408 407 axis.CustomLabels.Clear(); 409 408 if (categoricalMapping.ContainsKey(dimension)) {
Note: See TracChangeset
for help on using the changeset viewer.