Open
Description
您的功能请求是否与解决某些问题有关?请描述一下。/ Is your feature request related to a problem? Please describe.
优化
描述您想要的解决方案 / Describe the solution you'd like
优化
描述您想要的详细使用步骤描述 / Describe the solution you'd like to use in what way
使用
for (int i = 0; i < DataY.Length; i++)
{
if (DataY[i] == null)
DataY[i] = new double[MaxPoints];
Plot.Plot.AddSignal(DataY[i]);
}
替代
DataX = new double[MaxPoints];
for (int i = 0; i < MaxPoints; i++)
DataX[i] = i - MaxPoints + 1;
for (int i = 0; i < Data.Length; i++)
{
if(Data[i] == null)
Data[i] = new double[MaxPoints];
Plot.Plot.AddSignalXY(DataX, Data[i]);
}
--------------------------------------------------分割线-------------------------------------------------
使用
Plot.Plot.AxisAuto();
替代
Plot.Plot.SetAxisLimitsX(-MaxPoints, 0);
//防止最大值最小值错误
var min = Data.Min(x => x.Min());
var max = Data.Max(x => x.Max());
if(min < max)
Plot.Plot.SetAxisLimitsY(min, max);
--------------------------------------------------分割线-------------------------------------------------
使用
Array.Copy(DataY[line], 1, DataY[line], 0, DataY[line].Length - 1);
替代
for(int i = 0;i < MaxPoints - 1;i++)
Data[line][i] = Data[line][i + 1];
--------------------------------------------------分割线-------------------------------------------------
十字光标掉帧严重,建议提高刷新率或者移除十字光标
其他备注信息或截图 / Add any other context or screenshots about the feature request here
No response
Metadata
Assignees
Labels
No labels