Changeset 4394
- Timestamp:
- 09/15/10 13:08:12 (14 years ago)
- Location:
- branches/HeuristicLab.Classification/HeuristicLab.Problems.DataAnalysis.Classfication.Views/3.3
- Files:
-
- 2 added
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Classification/HeuristicLab.Problems.DataAnalysis.Classfication.Views/3.3/ConfusionMatrixView.Designer.cs
r4367 r4394 45 45 // cmbSamples 46 46 // 47 this.cmbSamples.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 47 48 this.cmbSamples.FormattingEnabled = true; 48 49 this.cmbSamples.Location = new System.Drawing.Point(56, 3); -
branches/HeuristicLab.Classification/HeuristicLab.Problems.DataAnalysis.Classfication.Views/3.3/HeuristicLab.Problems.DataAnalysis.Classification.Views-3.3.csproj
r4367 r4394 113 113 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 114 114 </Reference> 115 <Reference Include="HeuristicLab.Problems.DataAnalysis-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=AMD64" /> 115 <Reference Include="HeuristicLab.Problems.DataAnalysis-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=x86" /> 116 <Reference Include="HeuristicLab.Problems.DataAnalysis.Regression-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=x86" /> 116 117 <Reference Include="System" /> 117 118 <Reference Include="System.Core" /> … … 133 134 <Compile Include="HeuristicLabProblemsDataAnalysisClassificationViewsPlugin.cs" /> 134 135 <Compile Include="Properties\AssemblyInfo.cs" /> 136 <Compile Include="RocCurvesView.cs"> 137 <SubType>UserControl</SubType> 138 </Compile> 139 <Compile Include="RocCurvesView.Designer.cs"> 140 <DependentUpon>RocCurvesView.cs</DependentUpon> 141 </Compile> 135 142 <Compile Include="SymbolicClassificationSolutionView.cs"> 136 143 <SubType>UserControl</SubType> … … 146 153 </ItemGroup> 147 154 <ItemGroup> 148 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Classification\3.3\HeuristicLab.Problems.DataAnalysis.Classification .csproj">155 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Classification\3.3\HeuristicLab.Problems.DataAnalysis.Classification-3.3.csproj"> 149 156 <Project>{D35FD6DB-D704-4BEA-BDAE-C40ABFB5B13E}</Project> 150 <Name>HeuristicLab.Problems.DataAnalysis.Classification </Name>157 <Name>HeuristicLab.Problems.DataAnalysis.Classification-3.3</Name> 151 158 </ProjectReference> 152 159 </ItemGroup> -
branches/HeuristicLab.Classification/HeuristicLab.Problems.DataAnalysis.Classfication.Views/3.3/SymbolicClassificationSolutionView.cs
r4367 r4394 26 26 using System.Windows.Forms; 27 27 using System.Windows.Forms.DataVisualization.Charting; 28 using HeuristicLab.Common; 28 29 using HeuristicLab.MainForm; 29 30 using HeuristicLab.MainForm.WindowsForms; … … 69 70 CustomLabel trainingLabel = new CustomLabel(); 70 71 trainingLabel.Text = TrainingLabelText; 71 trainingLabel.GridTicks = GridTickTypes.TickMark;72 72 trainingLabel.FromPosition = TrainingAxisValue - TrainingTestBorder; 73 73 trainingLabel.ToPosition = TrainingAxisValue + TrainingTestBorder; … … 76 76 CustomLabel testLabel = new CustomLabel(); 77 77 testLabel.Text = TestLabelText; 78 testLabel.GridTicks = GridTickTypes.TickMark;79 78 testLabel.FromPosition = TestAxisValue - TrainingTestBorder; 80 79 testLabel.ToPosition = TestAxisValue + TrainingTestBorder; … … 160 159 row++; 161 160 } 161 UpdateCursorInterval(); 162 162 } 163 163 … … 245 245 Content.Thresholds = thresholds; 246 246 } 247 248 private void UpdateCursorInterval() { 249 Series series = chart.Series[0]; 250 double[] xValues = (from point in series.Points 251 where !point.IsEmpty 252 select point.XValue) 253 .DefaultIfEmpty(1.0) 254 .ToArray(); 255 double[] yValues = (from point in series.Points 256 where !point.IsEmpty 257 select point.YValues[0]) 258 .DefaultIfEmpty(1.0) 259 .ToArray(); 260 261 double xRange = xValues.Max() - xValues.Min(); 262 double yRange = yValues.Max() - yValues.Min(); 263 if (xRange.IsAlmost(0.0)) xRange = 1.0; 264 if (yRange.IsAlmost(0.0)) yRange = 1.0; 265 double xDigits = (int)Math.Log10(xRange) - 3; 266 double yDigits = (int)Math.Log10(yRange) - 3; 267 double xZoomInterval = Math.Pow(10, xDigits); 268 double yZoomInterval = Math.Pow(10, yDigits); 269 this.chart.ChartAreas[0].CursorX.Interval = xZoomInterval; 270 this.chart.ChartAreas[0].CursorY.Interval = yZoomInterval; 271 } 247 272 } 248 273 }
Note: See TracChangeset
for help on using the changeset viewer.