Changeset 11205 for branches/HiveStatistics/sources/HeuristicLab.Analysis.Views/3.3/ScatterPlotView.cs
- Timestamp:
- 07/18/14 13:44:53 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HiveStatistics/sources/HeuristicLab.Analysis.Views
- Property svn:mergeinfo changed
/stable/HeuristicLab.Analysis.Views (added) merged: 10032,11170,11173 /trunk/sources/HeuristicLab.Analysis.Views (added) merged: 9450,9456,9462,10037,11171,11174
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Analysis.Views/3.3/ScatterPlotView.cs
r11203 r11205 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 2Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 431 431 432 432 #region Helpers 433 public static IEnumerable<double> DoubleRange(double min, double max, double step) {434 double i;435 for (i = min; i <= max; i += step)436 yield return i;437 438 if (i != max + step)439 yield return i;440 }441 442 private double HumanRoundRange(double range) {443 double base10 = Math.Pow(10.0, Math.Floor(Math.Log10(range)));444 double rounding = range / base10;445 if (rounding <= 1.5) rounding = 1;446 else if (rounding <= 2.25) rounding = 2;447 else if (rounding <= 3.75) rounding = 2.5;448 else if (rounding <= 7.5) rounding = 5;449 else rounding = 10;450 return rounding * base10;451 }452 453 private double HumanRoundMax(double max) {454 double base10;455 if (max > 0) base10 = Math.Pow(10.0, Math.Floor(Math.Log10(max)));456 else base10 = Math.Pow(10.0, Math.Ceiling(Math.Log10(-max)));457 double rounding = (max > 0) ? base10 : -base10;458 while (rounding < max) rounding += base10;459 return rounding;460 }461 462 433 private MarkerStyle ConvertPointStyle(ScatterPlotDataRowVisualProperties.ScatterPlotDataRowPointStyle pointStyle) { 463 434 switch (pointStyle) {
Note: See TracChangeset
for help on using the changeset viewer.