public void graph4stuff(PointPairList points0, PointPairList points1_max, PointPairList points2_min, PointPairList points3_avg, string Title, string x_title, string y_title) { graph g = new graph(); g.Show(); GraphPane myPane = g.zgc.GraphPane; myPane.Title.Text = Title; myPane.XAxis.Title.Text = x_title; myPane.YAxis.Title.Text = y_title; //p0 LineItem myCurve0 = myPane.AddCurve(y_title, points0, Color.Black, SymbolType.Default); myCurve0.Symbol.Size = 2; myCurve0.Symbol.Fill = new Fill(Color.Black); //p1-max LineItem myCurve1 = myPane.AddCurve(y_title+ " Max", points1_max, Color.Red, SymbolType.Default); myCurve1.Symbol.Size = 2; myCurve1.Symbol.Fill = new Fill(Color.Red); //p2-min LineItem myCurve2 = myPane.AddCurve(y_title + " Min", points2_min, Color.Blue, SymbolType.Default); myCurve2.Symbol.Size = 2; myCurve2.Symbol.Fill = new Fill(Color.Blue); //p3-avg LineItem myCurve3 = myPane.AddCurve(y_title +" Avg", points3_avg, Color.Orange, SymbolType.Default); myCurve3.Symbol.Size = 2; myCurve3.Symbol.Fill = new Fill(Color.Orange); //myPane.Xaxis.MajorGrid.Default.IsVisible = true; myPane.Chart.Fill = new Fill(Color.White, Color.LightSteelBlue, 35F); //myPane. myPane.Fill = new Fill(Color.White, Color.LightGray, 45F); myPane.YAxis.MajorGrid.IsVisible = true; myPane.YAxis.MinorGrid.IsVisible = true; myPane.XAxis.MajorGrid.IsVisible = true; myPane.XAxis.MinorGrid.IsVisible = true; g.zgc.AxisChange(); }
public void graphstuff(PointPairList points, string Title, string x_title, string y_title) { graph g = new graph(); g.Show(); GraphPane myPane = g.zgc.GraphPane; myPane.Title.Text = Title; myPane.XAxis.Title.Text = x_title; myPane.YAxis.Title.Text = y_title; LineItem myCurve = myPane.AddCurve(y_title, points, Color.Blue, SymbolType.Default); // myCurve.Line.Fill = new Fill(Color.White, Color.Red, 45F); myCurve.Symbol.Size = 2; myCurve.Symbol.Fill = new Fill(Color.Red); myPane.Chart.Fill = new Fill(Color.White, Color.LightGoldenrodYellow, 45F); myPane.Fill = new Fill(Color.White, Color.FromArgb(220, 220, 255), 45F); myPane.YAxis.MajorGrid.IsVisible = true; myPane.YAxis.MinorGrid.IsVisible = true; myPane.XAxis.MajorGrid.IsVisible = true; myPane.XAxis.MinorGrid.IsVisible = true; g.zgc.AxisChange(); }
public void graphitall() { float s1 = 3; float s2 = 3; float s3 = 2; string y_title; graph g = new graph(); g.Show(); GraphPane myPane = g.zgc.GraphPane; myPane.Title.Text = "All Variables with Respect to Real Time"; myPane.XAxis.Title.Text = "Time [Hours]"; myPane.YAxis.Title.Text = "Unit [miles, mph, ft]"; //p0 y_title ="Speed [mph]"; LineItem myCurve0 = myPane.AddCurve(y_title, listSandT, Color.Black, SymbolType.Star); myCurve0.Symbol.Size = s1; myCurve0.Symbol.Fill = new Fill(Color.Black); //p1-max LineItem myCurve1 = myPane.AddCurve(y_title + " Max", listSmax_andT, Color.DarkRed, SymbolType.Star); myCurve1.Symbol.Size = s1; myCurve1.Symbol.Fill = new Fill(Color.DarkRed); //p2-min LineItem myCurve2 = myPane.AddCurve(y_title + " Min", listSmin_andT, Color.DarkBlue, SymbolType.Star); myCurve2.Symbol.Size = s1; myCurve2.Symbol.Fill = new Fill(Color.DarkBlue); //p3-avg LineItem myCurve3 = myPane.AddCurve(y_title + " Avg", listSavg_andT, Color.DarkOrange, SymbolType.Star); myCurve3.Symbol.Size = s1; myCurve3.Symbol.Fill = new Fill(Color.DarkOrange); //p0 y_title = "Altitude [ft]"; LineItem myCurve00 = myPane.AddCurve(y_title, listAandT, Color.Black, SymbolType.Triangle); myCurve00.Symbol.Size = s2; myCurve00.Symbol.Fill = new Fill(Color.Gray); //p1-max LineItem myCurve01 = myPane.AddCurve(y_title + " Max", listAmax_andT, Color.Red, SymbolType.Triangle); myCurve01.Symbol.Size = s2; myCurve01.Symbol.Fill = new Fill(Color.Red); //p2-min LineItem myCurve02 = myPane.AddCurve(y_title + " Min", listAmin_andT, Color.Blue, SymbolType.Triangle); myCurve02.Symbol.Size = s2; myCurve02.Symbol.Fill = new Fill(Color.Blue); //p3-avg LineItem myCurve03 = myPane.AddCurve(y_title + " Avg", listAavg_andT, Color.Orange, SymbolType.Triangle); myCurve03.Symbol.Size = s2; myCurve03.Symbol.Fill = new Fill(Color.Orange); //p3-avg LineItem myCurve000 = myPane.AddCurve("Distance [miles]", listDandT, Color.Green, SymbolType.Circle); myCurve000.Symbol.Size = s3; myCurve000.Symbol.Fill = new Fill(Color.Green); // pane finalization myPane.Chart.Fill = new Fill(Color.LightGray, Color.SteelBlue, 45F); myPane.Fill = new Fill(Color.White, Color.LightGray, 25F); myPane.YAxis.MajorGrid.IsVisible = true; myPane.YAxis.MinorGrid.IsVisible = true; myPane.XAxis.MajorGrid.IsVisible = true; myPane.XAxis.MinorGrid.IsVisible = true; g.zgc.AxisChange(); }