Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13958


Ignore:
Timestamp:
06/29/16 18:00:10 (8 years ago)
Author:
mkommend
Message:

#2620: Made data points in the regression solution scatter plot semi-transparent per default.

File:
1 edited

Legend:

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

    r13764 r13958  
    3636    private const string TEST_SERIES = "Test samples";
    3737
     38    private const int OPACITY_LEVEL = 150;
     39
    3840    public new IRegressionSolution Content {
    3941      get { return (IRegressionSolution)base.Content; }
     
    6062      this.chart.TextAntiAliasingQuality = TextAntiAliasingQuality.High;
    6163      this.chart.AxisViewChanged += new EventHandler<System.Windows.Forms.DataVisualization.Charting.ViewEventArgs>(chart_AxisViewChanged);
     64
     65      //make series colors semi transparent
     66      this.chart.ApplyPaletteColors();
     67      this.chart.Series[ALL_SERIES].Color = Color.FromArgb(OPACITY_LEVEL, this.chart.Series[ALL_SERIES].Color);
     68      this.chart.Series[TRAINING_SERIES].Color = Color.FromArgb(OPACITY_LEVEL, this.chart.Series[TRAINING_SERIES].Color);
     69      this.chart.Series[TEST_SERIES].Color = Color.FromArgb(OPACITY_LEVEL, this.chart.Series[TEST_SERIES].Color);
     70
     71      //change all markers to circles
     72      this.chart.Series[ALL_SERIES].MarkerStyle = MarkerStyle.Circle;
     73      this.chart.Series[TRAINING_SERIES].MarkerStyle = MarkerStyle.Circle;
     74      this.chart.Series[TEST_SERIES].MarkerStyle = MarkerStyle.Circle;
    6275
    6376      //configure axis
Note: See TracChangeset for help on using the changeset viewer.