改变gnuplot中点的颜色

时间:2014-08-08 11:16:16

标签: 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 "blue"无效?怎么了?

1 个答案:

答案 0 :(得分:8)

如果lc绘图样式不立即跟随labels选项,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的结果是:

enter image description here