相关疑难解决方法(0)

用gnuplot将两个"带盒子"的图拼接在一起

我试图在一个图中绘制两个数据系列作为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)

然而这两个系列重叠.我希望有一个系列在现有盒子的左半部分绘制它的盒子,而在另一半盒子中绘制另一个系列,以便它们有效地交替.我该怎么做?

编辑:

  1. 我尝试了直方图,但这看起来不太好.xtics不是我追求的,并且列之间有空格.
  2. 样本数据(100个中的前20列):

数据:

-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

4
推荐指数
1
解决办法
1万
查看次数

标签 统计

gnuplot ×1