This commit is contained in:
@@ -784,7 +784,18 @@ public partial class D7896ViewModel : ObservableObject
|
||||
CurrentMeasurementIndex = 0;
|
||||
StatusMessage = "已重置";
|
||||
TestDateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
TemperatureCurveModel = null;
|
||||
|
||||
// 清空曲线:新建一个空白的 PlotModel 替换原来的
|
||||
TemperatureCurveModel = new PlotModel
|
||||
{
|
||||
Title = "温升与冷却曲线",
|
||||
Background = OxyColors.White
|
||||
};
|
||||
TemperatureCurveModel.Axes.Add(new LinearAxis { Position = AxisPosition.Bottom, Title = "时间 (s)" });
|
||||
TemperatureCurveModel.Axes.Add(new LinearAxis { Position = AxisPosition.Left, Title = "温升 (℃)" });
|
||||
TemperatureCurveModel.InvalidatePlot(true);
|
||||
|
||||
CurveTitle = "温升曲线";
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
|
||||
Reference in New Issue
Block a user