Gnuplot 更改带标签打印中点的颜色

Gnuplot 更改带标签打印中点的颜色,gnuplot,Gnuplot,脚本可以正常工作,但颜色没有任何变化: plot '_numXY' using 2:3:(sprintf('%d', $1)) \ with labels offset 0,1 point pointtype 6 ps 2 notitle lc rgb "blue" 这些点是黑色的。我想看到蓝色的点。 为什么lc rgb“蓝色”不起作用?如果标签不立即跟随点选项,lc设置将被忽略。在您的情况下,只能将notitle放在末尾 plot '_numXY' using 2

脚本可以正常工作,但颜色没有任何变化:

plot '_numXY' using 2:3:(sprintf('%d', $1)) \
    with labels offset 0,1 point pointtype 6 ps 2 notitle lc rgb "blue"
这些点是黑色的。我想看到蓝色的点。

为什么
lc rgb“蓝色”
不起作用?

如果
标签不立即跟随
选项,
lc
设置将被忽略。在您的情况下,只能将
notitle
放在末尾

plot '_numXY' using 2:3:(sprintf('%d', $1)) \
    with labels offset 0,1 point pointtype 6 ps 2 lc rgb "blue" notitle
作为示例:

set samples 11
set xrange [0:10]
plot '+' using 1:1:(sprintf('%d', $1)) \
    with labels offset 0,1 point pointtype 6 ps 2 lc rgb "blue" notitle
4.6.5的结果是: