summaryrefslogtreecommitdiff
path: root/grapher/Form1.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-07-24 17:40:48 -0700
committerJacob Palecki <[email protected]>2020-07-24 17:40:48 -0700
commiteeb1287bb2ed3a634bf9f4ac713779dcfea229b2 (patch)
tree0bbaef80f43937c59134e247702e4c7ba2ed773a /grapher/Form1.cs
parentMerge branch 'master' into WrapperAndGrapher (diff)
downloadrawaccel-eeb1287bb2ed3a634bf9f4ac713779dcfea229b2.tar.xz
rawaccel-eeb1287bb2ed3a634bf9f4ac713779dcfea229b2.zip
Add correct names and labels
Diffstat (limited to 'grapher/Form1.cs')
-rw-r--r--grapher/Form1.cs15
1 files changed, 11 insertions, 4 deletions
diff --git a/grapher/Form1.cs b/grapher/Form1.cs
index b51ebe5..1915b01 100644
--- a/grapher/Form1.cs
+++ b/grapher/Form1.cs
@@ -10,12 +10,12 @@ using System.Windows.Forms;
namespace grapher
{
- public partial class Form1 : Form
+ public partial class RawAcceleration : Form
{
- public Form1()
+ public RawAcceleration()
{
InitializeComponent();
- var managedAccel = new ManagedAccel(6, 0, 0.025, 1.01, 0);
+ var managedAccel = new ManagedAccel(6, 0, 1, 0.025, 0);
var orderedPoints = new SortedDictionary<double, double>();
for (int i = 0; i < 100; i++)
@@ -35,13 +35,15 @@ namespace grapher
}
}
- var series = this.chart1.Series.FirstOrDefault();
+ var series = this.AccelerationChart.Series.FirstOrDefault();
series.Points.Clear();
foreach (var point in orderedPoints)
{
series.Points.AddXY(point.Key, point.Value);
}
+
+ this.AccelerationChart.ChartAreas[0].AxisX.RoundAxisValues();
}
public static double Magnitude(int x, int y)
@@ -53,5 +55,10 @@ namespace grapher
{
return Math.Sqrt(x * x + y * y);
}
+
+ private void Form1_Load(object sender, EventArgs e)
+ {
+
+ }
}
}