Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8282


Ignore:
Timestamp:
07/11/12 01:02:24 (12 years ago)
Author:
swagner
Message:

Worked on enhanced version of ScatterPlot (#1892)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/ScatterPlotView.cs

    r8280 r8282  
    182182      if (!Content.VisualProperties.AxisTitleColor.IsEmpty) area.AxisX.TitleForeColor = Content.VisualProperties.AxisTitleColor;
    183183      area.AxisX.Title = Content.VisualProperties.XAxisTitle;
     184      area.AxisX.MajorGrid.Enabled = Content.VisualProperties.XAxisGrid;
    184185
    185186      if (Content.VisualProperties.AxisTitleFont != null) area.AxisY.TitleFont = Content.VisualProperties.AxisTitleFont;
    186187      if (!Content.VisualProperties.AxisTitleColor.IsEmpty) area.AxisY.TitleForeColor = Content.VisualProperties.AxisTitleColor;
    187188      area.AxisY.Title = Content.VisualProperties.YAxisTitle;
     189      area.AxisY.MajorGrid.Enabled = Content.VisualProperties.YAxisGrid;
    188190    }
    189191
  • trunk/sources/HeuristicLab.Analysis/3.3/DataVisualization/ScatterPlotVisualProperties.cs

    r8280 r8282  
    107107    }
    108108
     109    private bool xAxisGrid;
     110    public bool XAxisGrid {
     111      get { return xAxisGrid; }
     112      set {
     113        if (xAxisGrid != value) {
     114          xAxisGrid = value;
     115          OnPropertyChanged("XAxisGrid");
     116        }
     117      }
     118    }
     119
     120    private bool yAxisGrid;
     121    public bool YAxisGrid {
     122      get { return yAxisGrid; }
     123      set {
     124        if (yAxisGrid != value) {
     125          yAxisGrid = value;
     126          OnPropertyChanged("YAxisGrid");
     127        }
     128      }
     129    }
     130
    109131    private bool xAxisMinimumAuto;
    110132    public bool XAxisMinimumAuto {
     
    234256      get { return yAxisTitle; }
    235257      set { yAxisTitle = value; }
     258    }
     259    [Storable(Name = "XAxisGrid")]
     260    private bool StorableXAxisGrid {
     261      get { return xAxisGrid; }
     262      set { xAxisGrid = value; }
     263    }
     264    [Storable(Name = "YAxisGrid")]
     265    private bool StorableYAxisGrid {
     266      get { return yAxisGrid; }
     267      set { yAxisGrid = value; }
    236268    }
    237269    [Storable(Name = "XAxisMinimumAuto")]
     
    288320      this.xAxisTitle = original.xAxisTitle;
    289321      this.yAxisTitle = original.yAxisTitle;
     322      this.xAxisGrid = original.xAxisGrid;
     323      this.yAxisGrid = original.yAxisGrid;
    290324      this.xAxisMinimumAuto = original.xAxisMinimumAuto;
    291325      this.xAxisMinimumFixedValue = original.xAxisMinimumFixedValue;
     
    303337      this.xAxisTitle = string.Empty;
    304338      this.yAxisTitle = string.Empty;
     339      this.xAxisGrid = true;
     340      this.yAxisGrid = true;
    305341      this.xAxisMinimumAuto = true;
    306342      this.xAxisMinimumFixedValue = double.NaN;
Note: See TracChangeset for help on using the changeset viewer.