原程式碼增加SetplotLabel,如下

更改天數時,會自動顯示所設定的日期

如圖藍圈處

 

// XQ 乖離率

//

input: Length1(5), Length2(10), Length3(20);

 SetInputName(1, "天數一");

SetInputName(2, "天數二");

SetInputName(3, "天數三");

 

Plot1(Bias(Length1), "BIAS1(%)");

SetplotLabel(1,Text("BIAS1(%) ",numtoStr(Length1,0),"日"));

Plot2(Bias(Length2), "BIAS2(%)");

SetplotLabel(2,Text("BIAS2(%) ",numtoStr(Length2,0),"日"));

Plot3(Bias(Length3), "BIAS3(%)");

SetplotLabel(3,Text("BIAS3(%) ",numtoStr(Length3,0),"日"));