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 "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 的结果是:

enter image description here

关于gnuplot - 更改标记图中点的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25202251/

相关文章:

matplotlib - 如何增加gnuplot中的颜色数量?

c++ - Gnuplot - 保存输出

gnuplot - 如何在每秒标记 "xtics"?

gnuplot - 将键标签放在行尾旁边

r - 如何使用 xyz 不同数据在 R 中制作热图

c++ - Gnuplot 和 C++ : Can't find gnuplot neither in PATH nor in "

java - 在 JavaPlot 中创建极坐标图

gnuplot - 如何通过我的 gnuplot 脚本检查终端是否可用?

c - 如何用c程序绘制数据?

Gnuplot:用颜色绘制 3D 散点数据