我想在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
但是这两个系列重叠。除了重叠之外,我希望有一个系列在现有盒子的左半边画一个盒子,另一个在右半边,以便它们有效地交替。我该怎么做?
编辑:
- 我尝试了直方图,但是这并没有看起来非常好。 xtics不是我之后的东西,而且列之间有空格。
- 样品的数据(第20列满分100分):
数据:
-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
25.751536 1647.000000 2121.000000
30.858899 1044.000000 1586.000000
35.966261 648.000000 1106.000000
41.073624 396.000000 873.000000
46.180986 257.000000 685.000000
51.288348 166.000000 471.000000
56.395711 101.000000 369.000000
61.503073 83.000000 321.000000
66.610435 52.000000 260.000000
71.717798 40.000000 184.000000
76.825160 30.000000 172.000000
81.932522 21.000000 143.000000
87.039885 11.000000 116.000000
你绘制什么样的数据? (是数据文件顺序整数的第一个字段中的内容?如果我有一个小数据文件可以使用,我可能会给你一个更完整和经过测试的答案) – mgilson 2012-03-22 18:27:23
@mgilson,请参阅编辑。 – Grzenio 2012-03-23 07:26:52