Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/23/11 15:47:33 (14 years ago)
Author:
gkronber
Message:

#1450: small change in line chart to remove white space between training and test partitions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionLineChartView.cs

    r6238 r6252  
    195195      stripLine.Text = title;
    196196      stripLine.Font = new Font("Times New Roman", 12, FontStyle.Bold);
    197       stripLine.StripWidth = end - start - 1; // strip range is [start .. end] inclusive, but we evaluate [start..end[ (end is exclusive)
    198       stripLine.IntervalOffset = start;
     197      // strip range is [start .. end] inclusive, but we evaluate [start..end[ (end is exclusive)
     198      // the strip should be by one longer (starting at start - 0.5 and ending at end + 0.5)
     199      stripLine.StripWidth = end - start;
     200      stripLine.IntervalOffset = start - 0.5; // start slightly to the left of the first point to clearly indicate the first point in the partition
    199201      this.chart.ChartAreas[0].AxisX.StripLines.Add(stripLine);
    200202    }
Note: See TracChangeset for help on using the changeset viewer.