Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void generujHistogramToolStripMenuItem_Click(object sender, EventArgs e)
- {
- histogram_form hist =new histogram_form();
- string[] nazwySerii={"seria 1","seria2"};
- double[] wartosci = liczby_generowane;
- Array.Sort(wartosci);
- hist.histogram_chart.Titles.Add("tytul");
- H = new int [ 50 ];
- for (int i = 0; i < 50; i++) H[ i ] = 0;
- for (int i = 0; i < wartosci.Length; i++) H[ (int)( wartosci[ i ] / 50.0 ) ] ++;
- Series serie;
- for (int i = 0; i < 50; i++)
- {
- serie = hist.histogram_chart.Series.Add( i );
- hist.histogram_chart.Series[ i ].IsVisibleInLegend = false;
- serie.Points.Add( H[i] );
- }
- hist.Show();
- }
Add Comment
Please, Sign In to add comment