工控控件组iocomp的iplot控件的使用
procedure TFormMain.Timer1Timer(Sender: TObject);
begin
inherited;
iPlot1.Channel[0].TitleText:='白石监测点';
iPlot1.Channel[1].TitleText:='芳村监测点';
iPlot1.Channel[0].AddYElapsedSeconds(Random(30));
iPlot1.Channel[1].AddYElapsedSeconds(Random(30));
end;
procedure TFormMain.FormShow(Sender: TObject);
begin
inherited;
iPlot1.XAxis[0].Span := 10;
iPlot1.YAxis[0].Span:=30;
iPlot1.XAxis[0].Title := '时间(秒)';
iPlot1.YAxis[0].Title:='水位(米)';
end;
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/archive/2008/11/04/2940984.html