summaryrefslogtreecommitdiff
path: root/grapher/Form1.cs
diff options
context:
space:
mode:
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)
+ {
+
+ }
}
}