Colors Gnuplot时间戳颜色?

Colors Gnuplot时间戳颜色?,colors,timestamp,gnuplot,Colors,Timestamp,Gnuplot,我有一个系统用gnuplot做了几个绘图,在一个平台改变后变成了黑色背景的图形。问题是,我无法将时间戳上的文本设置为白色 希望有一个时间戳,但黑色背景上的黑色文本有点枯燥:) 这是frim my.plot: #set colors set border linecolor rgbcolor "white" set key textcolor rgbcolor "white" set ylabel textcolor rgbcolor "white" set y2label textcolor r

我有一个系统用gnuplot做了几个绘图,在一个平台改变后变成了黑色背景的图形。问题是,我无法将时间戳上的文本设置为白色

希望有一个时间戳,但黑色背景上的黑色文本有点枯燥:)

这是frim my.plot:

#set colors
set border linecolor rgbcolor "white"
set key textcolor rgbcolor "white"
set ylabel textcolor rgbcolor "white"
set y2label textcolor rgbcolor "white"
set xlabel textcolor rgbcolor "white"
set title textcolor rgbcolor "white"
set timestamp color rgbcolor "white"
set obj 1 rectangle behind from screen 0,0 to screen 1,1
set obj 1 fillstyle solid 1.0 fillcolor rgbcolor "black"
时间戳就在此刻

#insert timestamp to upper left corner    
set timestamp "%d.%m.%Y - %H:%M:%S" top offset -1,-1 font ",10"

我已经尽了一切可能,你还有什么想法吗?

奇怪的是,
set timestamp
不支持
textcolor
。作为解决方法,您可以使用
strftime
设置标签并格式化时间:

set label left at character 1, graph 1.05 strftime("%d.%m.%Y - %H:%M:%S", time(0)) tc rgb "white"
这在4.6.3中运行良好


这可能需要调整顶部边距的位置(我不知道在计算顶部边距时是否考虑了时间戳,标签绝对不是)。

绝对精彩!这种方法很有魅力,谢谢!