如何在gnuplot标题中设置当前日期

use*_*012 3 date gnuplot title

可以在gnuplot标题中设置当前日期吗?

就像是...

设置标题"执行日期= datetime()"

提前致谢.

亚历山大.

Chr*_*oph 6

使用strftimetime(0)向标题添加时间/数据,例如:

set title "data of execution ".strftime("%a %b %d %H:%M:%S %Y", time(0))
Run Code Online (Sandbox Code Playgroud)

或者,如果它不必在标题中,您也可以使用

set timestamp
Run Code Online (Sandbox Code Playgroud)