我正在使用 Gnuplot 从输入文件中绘制步骤函数:
plot 'myFile' using 1:2 with steps
Run Code Online (Sandbox Code Playgroud)
我想填充情节下方。就像是
plot 'myFile' using 1:2 with filledcurves
Run Code Online (Sandbox Code Playgroud)
但是 Gnuplot 通过在连续点之间画一条线来填充图表下方。
如何在 step 函数下方填写?
使用与fillsteps相同的绘图样式,steps但曲线 和 之间的区域y=0被填充:
set samples 11
set xrange [0:10]
plot '+' with fillsteps fs solid 0.3 noborder lt 1,\
'+' with steps lt 1 lw 4
Run Code Online (Sandbox Code Playgroud)