예제 #1
0
        private void plot_press()
        {
            GraphPane plot_press = graph_press.GraphPane;

            plot_press.Title.Text                = "Pressure";
            plot_press.XAxis.Title.Text          = "t (hh:mm:ss)";
            plot_press.YAxis.Title.Text          = "PRESSURE (Pa)";
            plot_press.XAxis.MajorGrid.IsVisible = true;
            plot_press.YAxis.MajorGrid.IsVisible = true;
            plot_press.Chart.Fill                = new Fill(Color.White, Color.LightGray, 45.0f);
            plot_press.XAxis.Type                = AxisType.Date;
            plot_press.XAxis.Scale.Format        = "hh:mm:ss";

            LineItem line_press = plot_press.AddCurve("", list_press, Color.Green, SymbolType.None);

            line_press.Line.Width = 5;
            graph_press.AxisChange();

            graph_press.SaveAs("pressure_chart.png");
        }
예제 #2
0
        private void plot_temp()
        {
            GraphPane plot_temp = graph_temp.GraphPane;

            plot_temp.Title.Text                = "Temperature";
            plot_temp.XAxis.Title.Text          = "t (hh:mm:ss)";
            plot_temp.YAxis.Title.Text          = "TEMPERATURE (C)";
            plot_temp.XAxis.MajorGrid.IsVisible = true;
            plot_temp.YAxis.MajorGrid.IsVisible = true;
            plot_temp.Chart.Fill                = new Fill(Color.White, Color.LightGray, 45.0f);
            plot_temp.XAxis.Type                = AxisType.Date;
            plot_temp.XAxis.Scale.Format        = "hh:mm:ss";

            LineItem line_temp = plot_temp.AddCurve("", list_temp, Color.Green, SymbolType.None);

            line_temp.Line.Width = 5;
            graph_temp.AxisChange();

            graph_temp.SaveAs("temperature_chart.png");
        }
예제 #3
0
        private void plot_wind()
        {
            GraphPane plot_wind = graph_wind.GraphPane;

            plot_wind.Title.Text                = "Wind";
            plot_wind.XAxis.Title.Text          = "t (hh:mm:ss)";
            plot_wind.YAxis.Title.Text          = "WIND (m/s)";
            plot_wind.XAxis.MajorGrid.IsVisible = true;
            plot_wind.YAxis.MajorGrid.IsVisible = true;
            plot_wind.Chart.Fill                = new Fill(Color.White, Color.LightGray, 45.0f);
            plot_wind.XAxis.Type                = AxisType.Date;
            plot_wind.XAxis.Scale.Format        = "hh:mm:ss";

            LineItem line_wind = plot_wind.AddCurve("", list_wind, Color.Green, SymbolType.None);

            line_wind.Line.Width = 5;
            graph_wind.AxisChange();

            graph_wind.SaveAs("wind_chart.png");
        }
예제 #4
0
        private void plot_meth()
        {
            GraphPane plot_meth = graph_meth.GraphPane;

            plot_meth.Title.Text                = "METHANE";
            plot_meth.XAxis.Title.Text          = "t (hh:mm:ss)";
            plot_meth.YAxis.Title.Text          = "METHANE (ppm)";
            plot_meth.XAxis.MajorGrid.IsVisible = true;
            plot_meth.YAxis.MajorGrid.IsVisible = true;
            plot_meth.Chart.Fill                = new Fill(Color.White, Color.LightGray, 45.0f);
            plot_meth.XAxis.Type                = AxisType.Date;
            plot_meth.XAxis.Scale.Format        = "hh:mm:ss";
            plot_meth.YAxis.Scale.Min           = 1600;
            plot_meth.YAxis.Scale.Max           = 1800;

            LineItem line_meth = plot_meth.AddCurve("", list_meth, Color.Green, SymbolType.None);

            line_meth.Line.Width = 5;
            graph_meth.AxisChange();

            graph_meth.SaveAs("methane_chart.png");
        }
예제 #5
0
        private void plot_damp()
        {
            GraphPane plot_damp = graph_damp.GraphPane;

            plot_damp.Title.Text                = "CO";
            plot_damp.XAxis.Title.Text          = "t (hh:mm:ss)";
            plot_damp.YAxis.Title.Text          = "CO (ppm)";
            plot_damp.XAxis.MajorGrid.IsVisible = true;
            plot_damp.YAxis.MajorGrid.IsVisible = true;
            plot_damp.Chart.Fill                = new Fill(Color.White, Color.LightGray, 45.0f);
            plot_damp.YAxis.Scale.Min           = 0.1;
            plot_damp.YAxis.Scale.Max           = 0.5;
            plot_damp.XAxis.Type                = AxisType.Date;
            plot_damp.XAxis.Scale.Format        = "hh:mm:ss";

            LineItem line_damp = plot_damp.AddCurve("", list_damp, Color.Green, SymbolType.None);

            line_damp.Line.Width = 5;
            graph_damp.AxisChange();

            graph_damp.SaveAs("damp.png");
        }
예제 #6
0
        private void plot_uv()
        {
            GraphPane plot_uv = graph_uv.GraphPane;

            plot_uv.Title.Text                = "UV";
            plot_uv.XAxis.Title.Text          = "t (hh:mm:ss)";
            plot_uv.YAxis.Title.Text          = "UV";
            plot_uv.XAxis.MajorGrid.IsVisible = true;
            plot_uv.YAxis.MajorGrid.IsVisible = true;
            plot_uv.Chart.Fill                = new Fill(Color.White, Color.LightGray, 45.0f);
            plot_uv.YAxis.Scale.Min           = 1;
            plot_uv.YAxis.Scale.Max           = 8;
            plot_uv.XAxis.Type                = AxisType.Date;
            plot_uv.XAxis.Scale.Format        = "hh:mm:ss";

            LineItem line_uv = plot_uv.AddCurve("", list_uv, Color.Green, SymbolType.None);

            line_uv.Line.Width = 5;
            graph_uv.AxisChange();

            graph_uv.SaveAs("uv_chart.png");
        }
예제 #7
0
 public void SaveAs()
 {
     zGraph.SaveAs("img");
 }