我有两个来自其中任何一个的文件我将使用以下代码绘制一个点线:
set terminal postscript eps color solid font "Helvetica, 22"
set size ratio 0.625
set output "example.eps"
set key right top
plot "traffic.txt" using 1:2 title "traffic" with lp pt 7 ps 1 lc rgb "red", \
"solar.txt" using 1:($2*100) title "solar" with lp pt 9 ps 1 lc rgb "blue"
Run Code Online (Sandbox Code Playgroud)
两条线与x轴一起形成区域,并且由两条线形成的区域重叠.我想知道如何遮蔽重叠的部分.
谢谢!
(使用的文件如下)
档案1
1 66.660000
2 47.830000
3 39.270000
4 27.940000
5 24.990000
6 27.930000
7 32.060000
8 43.650000
9 70.470000
10 73.430000
11 87.690000
12 111.790000
13 …Run Code Online (Sandbox Code Playgroud)