2015-08-25 43 views
1

階躍函數我使用的Gnuplot從輸入文件得出階躍函數:下灌裝在gnuplot的

plot 'myFile' using 1:2 with steps 

我要填寫的情節之下。類似於

plot 'myFile' using 1:2 with filledcurves 

但是Gnuplot通過在連續點之間畫一條線來填充圖表下面的圖。

如何在step功能下填寫?

回答

2

使用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 

enter image description here