Changeset 12822
- Timestamp:
- 07/31/15 08:36:14 (9 years ago)
- Location:
- branches/PerformanceComparison
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/IndexedDataTableView.cs
r12808 r12822 55 55 chart.CustomizeAllChartAreas(); 56 56 chart.ChartAreas[0].CursorX.Interval = 1; 57 chart.SuppressExceptions = true; 57 58 } 58 59 … … 246 247 a.Maximum = double.NaN; 247 248 } 248 // chart controls handle log scaling problems not in a graceful way 249 if (chart.Series.Any(x => x. XAxisType == AxisType.Primary && (x.Points.Count == 0 || x.Points.Any(y => y.XValue <= 0))))249 250 if (chart.Series.Any(x => x.Enabled && x.XAxisType == AxisType.Primary && (x.Points.Count == 0 || x.Points.Any(y => y.XValue <= 0)))) 250 251 area.AxisX.IsLogarithmic = false; 251 252 else area.AxisX.IsLogarithmic = Content.VisualProperties.XAxisLogScale; 252 if (chart.Series.Any(x => x. XAxisType == AxisType.Secondary && (x.Points.Count == 0 || x.Points.Any(y => y.XValue <= 0))))253 if (chart.Series.Any(x => x.Enabled && x.XAxisType == AxisType.Secondary && (x.Points.Count == 0 || x.Points.Any(y => y.XValue <= 0)))) 253 254 area.AxisX2.IsLogarithmic = false; 254 255 else area.AxisX2.IsLogarithmic = Content.VisualProperties.SecondXAxisLogScale; 255 256 256 if (chart.Series.Any(x => x. YAxisType == AxisType.Primary && (x.Points.Count == 0 || x.Points.Any(y => y.YValues.Min() <= 0))))257 if (chart.Series.Any(x => x.Enabled && x.YAxisType == AxisType.Primary && (x.Points.Count == 0 || x.Points.Any(y => y.YValues.Min() <= 0)))) 257 258 area.AxisY.IsLogarithmic = false; 258 259 else area.AxisY.IsLogarithmic = Content.VisualProperties.YAxisLogScale; 259 if (chart.Series.Any(x => x. YAxisType == AxisType.Secondary && (x.Points.Count == 0 || x.Points.Any(y => y.YValues.Min() <= 0))))260 if (chart.Series.Any(x => x.Enabled && x.YAxisType == AxisType.Secondary && (x.Points.Count == 0 || x.Points.Any(y => y.YValues.Min() <= 0)))) 260 261 area.AxisY2.IsLogarithmic = false; 261 262 else area.AxisY2.IsLogarithmic = Content.VisualProperties.SecondYAxisLogScale; -
branches/PerformanceComparison/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionRLDView.cs
r12808 r12822 23 23 using System.Collections.Generic; 24 24 using System.ComponentModel; 25 using System.Drawing; 25 26 using System.Linq; 26 27 using System.Windows.Forms; … … 37 38 public partial class RunCollectionRLDView : ItemView { 38 39 private const string AllRuns = "All Runs"; 40 41 private static readonly Color[] colors = new[] { 42 Color.FromArgb(0x20, 0x4A, 0x87), 43 Color.FromArgb(0xC1, 0x7D, 0x11), 44 Color.FromArgb(0x4E, 0x9A, 0x06), 45 Color.FromArgb(0x75, 0x50, 0x7B), 46 Color.FromArgb(0x72, 0x9F, 0xCF), 47 Color.FromArgb(0xA4, 0x00, 0x00), 48 Color.FromArgb(0xAD, 0x7F, 0xA8), 49 Color.FromArgb(0xF5, 0x79, 0x00), 50 Color.FromArgb(0x55, 0x57, 0x53), 51 Color.FromArgb(0xEF, 0x29, 0x29), 52 Color.FromArgb(0xED, 0xD4, 0x00), 53 Color.FromArgb(0x73, 0xD2, 0x16), 54 }; 39 55 40 56 public new RunCollection Content { … … 208 224 select Tuple.Create(g.Key, g.ToList())).ToList(); 209 225 var xAxisTitles = new HashSet<string>(); 226 var colorCount = 0; 227 var lineStyles = new[] { 228 DataRowVisualProperties.DataRowLineStyle.Solid, 229 DataRowVisualProperties.DataRowLineStyle.Dash, 230 DataRowVisualProperties.DataRowLineStyle.DashDot, 231 DataRowVisualProperties.DataRowLineStyle.Dot 232 }; 233 var lineStyleCount = 0; 210 234 foreach (var group in groupedRuns) { 211 235 var hits = new Dictionary<string, SortedList<double, double>>(); … … 258 282 VisualProperties = { 259 283 ChartType = DataRowVisualProperties.DataRowChartType.StepLine, 260 LineWidth = 2 284 LineWidth = 2, 285 Color = colors[colorCount], 286 LineStyle = lineStyles[lineStyleCount] 261 287 } 262 288 }; … … 268 294 combinedDataTable.Rows.Add(row); 269 295 } 296 colorCount = (colorCount + 1) % colors.Length; 297 if (colorCount == 0) lineStyleCount = (lineStyleCount + 1) % lineStyles.Length; 270 298 } 271 299 combinedDataTable.VisualProperties.XAxisTitle = string.Join(" / ", xAxisTitles);
Note: See TracChangeset
for help on using the changeset viewer.