【发布时间】:2020-07-21 09:14:03
【问题描述】:
考虑以下最小的 gnuplot 脚本:
set terminal epslatex size 4.1,3
set out 'Plot.tex'
plot './Plot1.out' u 1:3 notitle w linespoints lt 1 pt 6 ps 1 lc rgb 'black', \
'./Plot2.out' u 1:3 notitle w linespoints lt 1 pt 6 ps 1 lc rgb 'red', \
'./Plot3.out' u 1:3 notitle w linespoints lt 1 pt 6 ps 1 lc rgb 'blue', \
'./Plot4.out' u 1:3 notitle w linespoints lt 1 pt 6 ps 1 lc rgb 'green'
set out
我目前分别为图 1、2、3 和 4 用黑色、红色、蓝色和绿色绘制每个图。如何添加与范围 [1,4] 关联的颜色条,并使每个绘图的颜色对应于其关联的绘图编号(1、2、3 或 4)?
编辑:我特别不想为此使用密钥,因为在我的实际示例中,我有 3 个并排堆叠的子图,每个子图有 8 个数据集(在每个子情节都使情节看起来非常混乱)。因此,我希望有一个对所有 3 个子图通用的颜色条,指示每个子图中数据集的数量(1、2、3 等)。有关我的意思的示例,请参阅取自 this journal article 的 this screenshot。
【问题讨论】:
-
抱歉,无法访问链接...
-
我一会儿上传截图。