From 02f5d86a891edb2f49851b400b0d2b2f8b4e4f98 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Fri, 24 Jul 2020 11:15:04 -0700 Subject: Add a basic windows forms grapher --- grapher/Form1.Designer.cs | 73 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 grapher/Form1.Designer.cs (limited to 'grapher/Form1.Designer.cs') diff --git a/grapher/Form1.Designer.cs b/grapher/Form1.Designer.cs new file mode 100644 index 0000000..8610ef4 --- /dev/null +++ b/grapher/Form1.Designer.cs @@ -0,0 +1,73 @@ +namespace grapher +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); + System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); + System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); + this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); + ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); + this.SuspendLayout(); + // + // chart1 + // + chartArea1.Name = "ChartArea1"; + this.chart1.ChartAreas.Add(chartArea1); + legend1.Name = "Legend1"; + this.chart1.Legends.Add(legend1); + this.chart1.Location = new System.Drawing.Point(0, 0); + this.chart1.Name = "chart1"; + series1.ChartArea = "ChartArea1"; + series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; + series1.Legend = "Legend1"; + series1.Name = "Series1"; + this.chart1.Series.Add(series1); + this.chart1.Size = new System.Drawing.Size(800, 312); + this.chart1.TabIndex = 0; + this.chart1.Text = "chart1"; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 310); + this.Controls.Add(this.chart1); + this.Name = "Form1"; + this.Text = "Form1"; + ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.DataVisualization.Charting.Chart chart1; + } +} + -- cgit v1.2.3 From eeb1287bb2ed3a634bf9f4ac713779dcfea229b2 Mon Sep 17 00:00:00 2001 From: Jacob Palecki Date: Fri, 24 Jul 2020 17:40:48 -0700 Subject: Add correct names and labels --- grapher/Form1.Designer.cs | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) (limited to 'grapher/Form1.Designer.cs') diff --git a/grapher/Form1.Designer.cs b/grapher/Form1.Designer.cs index 8610ef4..b39c887 100644 --- a/grapher/Form1.Designer.cs +++ b/grapher/Form1.Designer.cs @@ -1,6 +1,6 @@ namespace grapher { - partial class Form1 + partial class RawAcceleration { /// /// Required designer variable. @@ -31,43 +31,46 @@ System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); - this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); - ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); + this.AccelerationChart = new System.Windows.Forms.DataVisualization.Charting.Chart(); + ((System.ComponentModel.ISupportInitialize)(this.AccelerationChart)).BeginInit(); this.SuspendLayout(); // - // chart1 + // AccelerationChart // + chartArea1.AxisX.Title = "Speed (counts/ms)"; + chartArea1.AxisY.Title = "Sensitivity (magnitude ratio)"; chartArea1.Name = "ChartArea1"; - this.chart1.ChartAreas.Add(chartArea1); + this.AccelerationChart.ChartAreas.Add(chartArea1); legend1.Name = "Legend1"; - this.chart1.Legends.Add(legend1); - this.chart1.Location = new System.Drawing.Point(0, 0); - this.chart1.Name = "chart1"; + this.AccelerationChart.Legends.Add(legend1); + this.AccelerationChart.Location = new System.Drawing.Point(0, 0); + this.AccelerationChart.Name = "AccelerationChart"; series1.ChartArea = "ChartArea1"; series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Line; series1.Legend = "Legend1"; - series1.Name = "Series1"; - this.chart1.Series.Add(series1); - this.chart1.Size = new System.Drawing.Size(800, 312); - this.chart1.TabIndex = 0; - this.chart1.Text = "chart1"; + series1.Name = "Accelerated Sensitivity"; + this.AccelerationChart.Series.Add(series1); + this.AccelerationChart.Size = new System.Drawing.Size(800, 312); + this.AccelerationChart.TabIndex = 0; + this.AccelerationChart.Text = "chart1"; // - // Form1 + // RawAcceleration // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(800, 310); - this.Controls.Add(this.chart1); - this.Name = "Form1"; - this.Text = "Form1"; - ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); + this.Controls.Add(this.AccelerationChart); + this.Name = "RawAcceleration"; + this.Text = "Raw Acceleration Graph"; + this.Load += new System.EventHandler(this.Form1_Load); + ((System.ComponentModel.ISupportInitialize)(this.AccelerationChart)).EndInit(); this.ResumeLayout(false); } #endregion - private System.Windows.Forms.DataVisualization.Charting.Chart chart1; + private System.Windows.Forms.DataVisualization.Charting.Chart AccelerationChart; } } -- cgit v1.2.3