在 gnuplot 中填充步骤函数

filling under step functions in gnuplot

我正在使用 Gnuplot 从输入文件绘制步进函数:

plot 'myFile' using 1:2 with steps

我想填充下面的情节。像

plot 'myFile' using 1:2 with filledcurves 

但是 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