Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/31/15 08:36:14 (9 years ago)
Author:
abeham
Message:

#2431: if multiple targets are plotted, the same color is used for each group

File:
1 edited

Legend:

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

    r12808 r12822  
    5555      chart.CustomizeAllChartAreas();
    5656      chart.ChartAreas[0].CursorX.Interval = 1;
     57      chart.SuppressExceptions = true;
    5758    }
    5859
     
    246247        a.Maximum = double.NaN;
    247248      }
    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))))
    250251        area.AxisX.IsLogarithmic = false;
    251252      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))))
    253254        area.AxisX2.IsLogarithmic = false;
    254255      else area.AxisX2.IsLogarithmic = Content.VisualProperties.SecondXAxisLogScale;
    255256
    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))))
    257258        area.AxisY.IsLogarithmic = false;
    258259      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))))
    260261        area.AxisY2.IsLogarithmic = false;
    261262      else area.AxisY2.IsLogarithmic = Content.VisualProperties.SecondYAxisLogScale;
Note: See TracChangeset for help on using the changeset viewer.