//--------------------------------------------- #region Public Members /// <summary> /// Forces a update of the Histogram bins. /// </summary> public void UpdateGraph() { graphBars.Clear(); String[] labels = new String[histogram.Values.Length]; for (int i = 0; i < histogram.Values.Length; i++) { graphBars.AddPoint(i, histogram.Bins[i].Value); labels[i] = histogram.Bins[i].Range.Min.ToString(formatString, CultureInfo.CurrentCulture) + " - " + histogram.Bins[i].Range.Max.ToString(formatString, CultureInfo.CurrentCulture); } zedGraphControl.GraphPane.XAxis.Scale.TextLabels = labels; zedGraphControl.GraphPane.XAxis.Scale.FontSpec.Angle = 45.0f; zedGraphControl.AxisChange(); zedGraphControl.Invalidate(); }
//--------------------------------------------- #region Public Members public void UpdateGraph() { m_graphBars.Clear(); String[] labels = new String[m_histogram.Values.Length]; for (int i = 0; i < m_histogram.Values.Length; i++) { m_graphBars.AddPoint(i, m_histogram.Bins[i].Value); labels[i] = m_histogram.Bins[i].Range.ToString("N2"); } zedGraphControl1.GraphPane.XAxis.Scale.TextLabels = labels; zedGraphControl1.GraphPane.XAxis.Scale.FontSpec.Angle = 45.0f; zedGraphControl1.AxisChange(); zedGraphControl1.Invalidate(); }