脚本可以工作,但颜色没有任何变化:
plot '_numXY' using 2:3:(sprintf('%d', $1)) \
with labels offset 0,1 point pointtype 6 ps 2 notitle lc rgb "blue"
这些点是黑色。我想看到蓝色颜色的点。
为什么 lc rgb "blue"
不起作用?
最佳答案
如果labels
绘图样式的lc
设置不立即跟随point
选项,则它们将被忽略。在您的情况下,您只能将 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 的结果是:
关于gnuplot - 更改标记图中点的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25202251/