Changeset 12808 for branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/IndexedDataTableView.cs
- Timestamp:
- 07/28/15 14:41:03 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/IndexedDataTableView.cs
r12771 r12808 128 128 chart.ChartAreas[0].AxisY.Title = string.Empty; 129 129 chart.ChartAreas[0].AxisY2.Title = string.Empty; 130 chart.ChartAreas[0].AxisX.IsLogarithmic = false; 131 chart.ChartAreas[0].AxisX2.IsLogarithmic = false; 132 chart.ChartAreas[0].AxisY.IsLogarithmic = false; 133 chart.ChartAreas[0].AxisY2.IsLogarithmic = false; 130 134 chart.Series.Clear(); 131 135 if (Content != null) { … … 234 238 area.AxisX.IntervalAutoMode = IntervalAutoMode.VariableCount; 235 239 } 236 237 area.AxisX.IsLogarithmic = Content.VisualProperties.XAxisLogScale;238 area.AxisX2.IsLogarithmic = Content.VisualProperties.SecondXAxisLogScale;239 area.AxisY.IsLogarithmic = Content.VisualProperties.YAxisLogScale;240 area.AxisY2.IsLogarithmic = Content.VisualProperties.SecondYAxisLogScale;241 240 } 242 241 … … 247 246 a.Maximum = double.NaN; 248 247 } 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)))) 250 area.AxisX.IsLogarithmic = false; 251 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 area.AxisX2.IsLogarithmic = false; 254 else area.AxisX2.IsLogarithmic = Content.VisualProperties.SecondXAxisLogScale; 255 256 if (chart.Series.Any(x => x.YAxisType == AxisType.Primary && (x.Points.Count == 0 || x.Points.Any(y => y.YValues.Min() <= 0)))) 257 area.AxisY.IsLogarithmic = false; 258 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 area.AxisY2.IsLogarithmic = false; 261 else area.AxisY2.IsLogarithmic = Content.VisualProperties.SecondYAxisLogScale; 262 249 263 area.RecalculateAxesScale(); 250 264 area.AxisX.IsMarginVisible = false;
Note: See TracChangeset
for help on using the changeset viewer.