【发布时间】:2014-08-08 11:16:15
【问题描述】:
脚本可以正常工作,但颜色没有任何变化:
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" 不起作用?
【问题讨论】:
标签: 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" 不起作用?
【问题讨论】:
标签: gnuplot
如果lc 设置不立即遵循point 选项,则labels 绘图样式将忽略它们。在您的情况下,您只能将 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的结果是:
【讨论】: