- Timestamp:
- 04/09/11 00:15:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/histogram/HeuristicLab.Visualization.ChartControlsExtensions/3.3/HistogramControl.cs
r5970 r5994 32 32 33 33 private List<double> points; 34 public int NumberOfBins { 35 get { return (int)binsNumericUpDown.Value; } 36 set { binsNumericUpDown.Value = value; } 37 } 38 39 public int MinimumNumberOfBins { 40 get { return (int)binsNumericUpDown.Minimum; } 41 set { binsNumericUpDown.Minimum = value; } 42 } 43 44 public int MaximumNumberOfBins { 45 get { return (int)binsNumericUpDown.Maximum; } 46 set { binsNumericUpDown.Maximum = value; } 47 } 48 49 public int IncrementNumberOfBins { 50 get { return (int)binsNumericUpDown.Increment; } 51 set { binsNumericUpDown.Increment = value; } 52 } 53 54 public bool CalculateExactBins { 55 get { return exactCheckBox.Checked; } 56 set { exactCheckBox.Checked = value; } 57 } 58 59 public bool ShowExactCheckbox { 60 get { return exactCheckBox.Visible; } 61 set { exactCheckBox.Visible = value; } 62 } 34 63 35 64 public HistogramControl() { … … 64 93 65 94 private void UpdateHistogram() { 66 95 if (InvokeRequired) { 96 Invoke((Action)UpdateHistogram, null); 97 return; 98 } 67 99 Series histogramSeries = chart.Series[SeriesName]; 68 100 histogramSeries.Points.Clear(); … … 113 145 double rounding = range / base10; 114 146 if (rounding <= 1.5) rounding = 1; 115 else if (rounding <= 2 ) rounding = 2;116 else if (rounding <= 2.5) rounding = 2.5;117 else if (rounding <= 5) rounding = 5;147 else if (rounding <= 2.25) rounding = 2; 148 else if (rounding <= 3.75) rounding = 2.5; 149 else if (rounding <= 7.5) rounding = 5; 118 150 else rounding = 10; 119 151 return rounding * base10;
Note: See TracChangeset
for help on using the changeset viewer.