在本例中,3.plot的点颜色(蓝色)与测试输出(绿色)不同-这是为什么?(我的默认终端是aqua,但它与png相同)
plot [0:4]\
'-' title 'pt1' with points pt 1,\
2*x title 'lt1' with lines lt 1,\
'-' title 'pt2' with points pt 2,\
3*x title 'lt2' with lines lt 2
1 1
2 5
end
1 3
3 7
end通过更改绘图的顺序,颜色会发生变化:
plot [0:4]\
'-' title 'pt1' with points pt 1,\
'-' title 'pt2' with points pt 2,\
2*x title 'lt1' with lines lt 1,\
3*x title 'lt2' with lines lt 2
1 1
2 5
end
1 3
3 7
end发布于 2011-11-06 09:42:26
SourceForge上的用户sfeam提供了答案:
点类型不控制颜色。这是第三个打印,而您没有另行说明,因此它的颜色为线型3(蓝色)。
显然,线条图的颜色是由之前的线条图的数量设置的,而点图的颜色是由所有之前的图的数量设置的。这两种颜色都可以由linecolor或lc控制。
https://stackoverflow.com/questions/7948987
复制相似问题