ScottPlot5.0
<code>//[Graph Init Code]
formsPlot1.Plot.Axes.SetLimitsY(-5, 15); // y limit -5,15
formsPlot1.Plot.Axes.DateTimeTicksBottom();
formsPlot2.Plot.Axes.SetLimitsY(-5, 15); // y limit -5,15
formsPlot2.Plot.Axes.DateTimeTicksBottom();
formsPlot1.Plot.YLabel("Voltage", 18);
formsPlot2.Plot.YLabel("Voltage", 18);
formsPlot1.Refresh();
formsPlot2.Refresh();
</code>
<code>//[Graph Init Code]
formsPlot1.Plot.Axes.SetLimitsY(-5, 15); // y limit -5,15
formsPlot1.Plot.Axes.DateTimeTicksBottom();
formsPlot2.Plot.Axes.SetLimitsY(-5, 15); // y limit -5,15
formsPlot2.Plot.Axes.DateTimeTicksBottom();
formsPlot1.Plot.YLabel("Voltage", 18);
formsPlot2.Plot.YLabel("Voltage", 18);
formsPlot1.Refresh();
formsPlot2.Refresh();
</code>
//[Graph Init Code]
formsPlot1.Plot.Axes.SetLimitsY(-5, 15); // y limit -5,15
formsPlot1.Plot.Axes.DateTimeTicksBottom();
formsPlot2.Plot.Axes.SetLimitsY(-5, 15); // y limit -5,15
formsPlot2.Plot.Axes.DateTimeTicksBottom();
formsPlot1.Plot.YLabel("Voltage", 18);
formsPlot2.Plot.YLabel("Voltage", 18);
formsPlot1.Refresh();
formsPlot2.Refresh();
<code>//[Timer Code]
DateTime now = DateTime.Now;
double DateTime_Now = DateTime.Now.ToOADate();
double x2 = m_i * 13;
double y2 = Math.Sin(x2);
logger[0].Add(DateTime_Now, y2);
m_i++; // m_i -> start for 0
</code>
<code>//[Timer Code]
DateTime now = DateTime.Now;
double DateTime_Now = DateTime.Now.ToOADate();
double x2 = m_i * 13;
double y2 = Math.Sin(x2);
logger[0].Add(DateTime_Now, y2);
m_i++; // m_i -> start for 0
</code>
//[Timer Code]
DateTime now = DateTime.Now;
double DateTime_Now = DateTime.Now.ToOADate();
double x2 = m_i * 13;
double y2 = Math.Sin(x2);
logger[0].Add(DateTime_Now, y2);
m_i++; // m_i -> start for 0
As a result of running the current code, time is displayed on the x-axis in real time, but the x-axis time interval and scale cannot be set due to auto scale. What is the method of fixing the specified time interval and scale?
For example, the total length of the x-axis is 1 hour, expressed in 10-minute increments. After one hour, the data is pushed back one space.