gnuplot中预定义的点类型

gnuplot中预定义的点类型,gnuplot,Gnuplot,如何在Gnuplot中设置预定义的点样式?因为我是色盲,我真的不喜欢Gnuplot的标准颜色(颜色3、4和5对我来说是蓝色、蓝色和蓝色),我在我的主目录的.Gnuplot文件中列出了一些更友好的颜色。这个文件看起来像这样 set style line 1 lt 5 lw 5 lc rgb "red" set style line 2 lt 6 lw 5 lc rgb "blue" set style line 3 lt 2 lw 5 lc rgb "olive" set style line 4

如何在Gnuplot中设置预定义的点样式?因为我是色盲,我真的不喜欢Gnuplot的标准颜色(颜色3、4和5对我来说是蓝色、蓝色和蓝色),我在我的主目录的.Gnuplot文件中列出了一些更友好的颜色。这个文件看起来像这样

set style line 1 lt 5 lw 5 lc rgb "red"
set style line 2 lt 6 lw 5 lc rgb "blue"
set style line 3 lt 2 lw 5 lc rgb "olive"
set style line 4 lt 3 lw 5 lc rgb "salmon"
set style line 5 lt 4 lw 5 lc rgb "black"
...

但是当我想要绘制数据点时,它使用相同的原始Gnuplot颜色。有没有一种方法可以像这些线一样定义点?例如,第一种点类型是黑匣子,第二种点类型是红色三角形等。对于这样的文件,您必须使用

load 'mycolors.gp'
plot x linestyle 1, 2*x linestyle 2
或者使用
set style increment user
,该用户应自动使用线样式而不是线类型:

load 'mycolors.gp'
set style increment user
plot x, 2*x
但是要注意,使用
set-style-increment-user
是不推荐的

在您的情况下,最好的选择是直接重新定义线型:

set linetype 1 lt 5 lw 5 lc rgb "red"
set linetype 2 lt 6 lw 5 lc rgb "blue"
set linetype 3 lt 2 lw 5 lc rgb "olive"

plot x, 2*x, 3*x
作为旁注:您必须记住,
设置线型
不受
重置
的影响

您可能还想试用gnuplot二进制文件附带的文件
share/colors\u default.gp
share/colors\u podo.gp
中定义的颜色(请参阅上一张图片以了解它们的外观)