daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         private void generujHistogramToolStripMenuItem_Click(object sender, EventArgs e)
  2.         {
  3.            histogram_form hist =new histogram_form();
  4.            string[] nazwySerii={"seria 1","seria2"};
  5.            double[] wartosci = liczby_generowane;
  6.            Array.Sort(wartosci);
  7.            hist.histogram_chart.Titles.Add("tytul");
  8.            
  9.            H = new int [ 50 ];
  10.            
  11.            for (int i = 0; i < 50; i++) H[ i ] = 0;
  12.            
  13.            for (int i = 0; i < wartosci.Length; i++) H[ (int)( wartosci[ i ] / 50.0 ) ] ++;
  14.            
  15.             Series serie;
  16.            
  17.            for (int i = 0; i < 50; i++)
  18.            {
  19.                serie = hist.histogram_chart.Series.Add( i );
  20.                hist.histogram_chart.Series[ i ].IsVisibleInLegend = false;
  21.                serie.Points.Add( H[i] );
  22.            }
  23.            hist.Show();
  24.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top