Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/28/15 14:41:03 (9 years ago)
Author:
abeham
Message:

#2431:

  • added ability to plot curves for multiple targets at once
  • fixed bug in IndexedDataTableView regarding log-scaling
  • added result that counts restarts
  • fixed bugs in IRRestarter
  • Set LineWidth = 2 in analyzers for chart
  • fixed bugs in RLD view
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PerformanceComparison/HeuristicLab.Analysis.Views/3.3/IndexedDataTableView.cs

    r12771 r12808  
    128128      chart.ChartAreas[0].AxisY.Title = string.Empty;
    129129      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;
    130134      chart.Series.Clear();
    131135      if (Content != null) {
     
    234238        area.AxisX.IntervalAutoMode = IntervalAutoMode.VariableCount;
    235239      }
    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;
    241240    }
    242241
     
    247246        a.Maximum = double.NaN;
    248247      }
     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
    249263      area.RecalculateAxesScale();
    250264      area.AxisX.IsMarginVisible = false;
Note: See TracChangeset for help on using the changeset viewer.