- Timestamp:
- 08/06/18 13:58:34 (6 years ago)
- Location:
- stable
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 15607,15610
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Optimization.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Optimization.Views merged: 15607,15610
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.Designer.cs
r15584 r16047 54 54 this.yAxisComboBox = new System.Windows.Forms.ComboBox(); 55 55 this.chart = new HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart(); 56 this.openBubbleChartViewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 56 57 this.noRunsLabel = new System.Windows.Forms.Label(); 57 58 this.splitContainer = new System.Windows.Forms.SplitContainer(); … … 112 113 // chart 113 114 // 114 this.chart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 115 | 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) 116 117 | System.Windows.Forms.AnchorStyles.Right))); 117 118 chartArea1.Name = "ChartArea1"; … … 132 133 this.chart.MouseMove += new System.Windows.Forms.MouseEventHandler(this.chart_MouseMove); 133 134 // 135 // openBubbleChartViewToolStripMenuItem 136 // 137 this.openBubbleChartViewToolStripMenuItem.Name = "openBubbleChartViewToolStripMenuItem"; 138 this.openBubbleChartViewToolStripMenuItem.Size = new System.Drawing.Size(256, 22); 139 this.openBubbleChartViewToolStripMenuItem.Text = "Open BubbleChart View"; 140 this.openBubbleChartViewToolStripMenuItem.Click += new System.EventHandler(this.openBubbleChartViewToolStripMenuItem_Click); 141 // 134 142 // noRunsLabel 135 143 // … … 183 191 // statisticsGroupBox 184 192 // 185 this.statisticsGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 186 | 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) 187 195 | System.Windows.Forms.AnchorStyles.Right))); 188 196 this.statisticsGroupBox.Controls.Add(this.statisticsMatrixView); … … 239 247 private System.Windows.Forms.ToolTip tooltip; 240 248 protected System.Windows.Forms.CheckBox showStatisticsCheckBox; 249 private System.Windows.Forms.ToolStripMenuItem openBubbleChartViewToolStripMenuItem; 241 250 } 242 251 } -
stable/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.cs
r15584 r16047 48 48 public RunCollectionBoxPlotView() { 49 49 InitializeComponent(); 50 chart.ContextMenuStrip.Items.Insert(0, openBubbleChartViewToolStripMenuItem); 51 50 52 categoricalMapping = new Dictionary<int, Dictionary<object, double>>(); 51 53 seriesCache = new SortedDictionary<double, Series>(); … … 211 213 212 214 private void UpdateStatistics() { 213 DoubleMatrix matrix = new DoubleMatrix( 9, seriesCache.Count);215 DoubleMatrix matrix = new DoubleMatrix(10, seriesCache.Count); 214 216 matrix.SortableView = false; 215 217 List<string> columnNames = new List<string>(); … … 224 226 AxisDimension axisDimension = (AxisDimension)Enum.Parse(typeof(AxisDimension), selectedAxis); 225 227 switch (axisDimension) { 226 case AxisDimension.Color: value = new StringValue(run.Color.ToString()); 228 case AxisDimension.Color: 229 value = new StringValue(run.Color.ToString()); 227 230 break; 228 231 } … … 236 239 } 237 240 matrix.ColumnNames = columnNames; 238 matrix.RowNames = new string[] { "Count", "Minimum", "Maximum", "Median", "Average", "Standard Deviation", "Variance", "25th Percentile", "75th Percentile" };241 matrix.RowNames = new string[] { "Count", "Minimum", "Maximum", "Median", "Average", "Standard Deviation", "Variance", "25th Percentile", "75th Percentile", "Interquartile Range" }; 239 242 240 243 for (int i = 0; i < seriesCache.Count; i++) { … … 250 253 matrix[7, i] = seriesValues.Quantile(0.25); 251 254 matrix[8, i] = seriesValues.Quantile(0.75); 255 matrix[9, i] = matrix[8, i] - matrix[7, i]; 252 256 } 253 257 statisticsMatrixView.Content = matrix; … … 445 449 } 446 450 451 private void openBubbleChartViewToolStripMenuItem_Click(object sender, EventArgs e) { 452 RunCollectionBubbleChartView bubbleChartView = new RunCollectionBubbleChartView(); 453 bubbleChartView.Content = this.Content; 454 bubbleChartView.xAxisComboBox.SelectedItem = xAxisComboBox.SelectedItem; 455 bubbleChartView.yAxisComboBox.SelectedItem = yAxisComboBox.SelectedItem; 456 bubbleChartView.Show(); 457 } 458 447 459 private void chart_MouseMove(object sender, MouseEventArgs e) { 448 460 string newTooltipText = string.Empty; … … 463 475 } 464 476 465 466 467 468 469 477 public bool StatisticsVisible { 478 get { return splitContainer.Panel2Collapsed; } 479 set { splitContainer.Panel2Collapsed = value; } 480 } 481 470 482 public void SetXAxis(string axisName) { 471 483 xAxisComboBox.SelectedItem = axisName; -
stable/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBubbleChartView.Designer.cs
r15584 r16047 201 201 // chart 202 202 // 203 this.chart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 204 | System.Windows.Forms.AnchorStyles.Left) 203 this.chart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 204 | System.Windows.Forms.AnchorStyles.Left) 205 205 | System.Windows.Forms.AnchorStyles.Right))); 206 206 chartArea1.Name = "ChartArea1"; … … 455 455 456 456 private System.Windows.Forms.Label xAxisLabel; 457 privateSystem.Windows.Forms.ComboBox xAxisComboBox;457 internal System.Windows.Forms.ComboBox xAxisComboBox; 458 458 private System.Windows.Forms.Label yAxisLabel; 459 privateSystem.Windows.Forms.ComboBox yAxisComboBox;459 internal System.Windows.Forms.ComboBox yAxisComboBox; 460 460 private System.Windows.Forms.TrackBar yTrackBar; 461 461 private System.Windows.Forms.TrackBar xTrackBar;
Note: See TracChangeset
for help on using the changeset viewer.