我试图在一个图中绘制两个数据系列作为gnuplot中的框.该脚本目前看起来像这样:
set terminal postscript eps enhanced color
set title "Distribution of the extrepreneur PnL. Loan $6."
set output 'pnl_loan6.eps'
#set xrange [0:]
set xlabel "Discounted profit"
set style fill solid 0.8 border -1
plot 'pnl_loan6.txt' using 1:2 title 'PnL high risk (xi=1)' with boxes,\
'pnl_loan6.txt' using 1:3 title 'PnL high risk (xi=1.5)' with boxes
Run Code Online (Sandbox Code Playgroud)
然而这两个系列重叠.我希望有一个系列在现有盒子的左半部分绘制它的盒子,而在另一半盒子中绘制另一个系列,以便它们有效地交替.我该怎么做?
编辑:
数据:
-10.000000 20251.000000 31825.000000
-4.892638 26743.000000 21310.000000
0.214725 20362.000000 14590.000000
5.322087 13023.000000 9645.000000
10.429449 7730.000000 6347.000000
15.536812 4636.000000 4331.000000
20.644174 2714.000000 2964.000000 …Run Code Online (Sandbox Code Playgroud) gnuplot ×1