返回信息流我想同时画bar和line,请问能在同一个图里面输出吗?
这样行不行呢?
set term postscript eps color blacktext "Helvetica" 24
set output '600030macd.eps'
set autoscale # scale axes automatically
unset log # remove any log-scaling
unset label # remove any previous labels
set xtic auto # set xtics automatically
set ytic auto # set ytics automatically
set title "MACD Chart"
set xlabel "date"
set ylabel "score"
set key 0.01,100
#set label "Yield Point" at 0.003,260
#set arrow from 0.0028,250 to 0.003,280
set xrange [0:66]
set yrange [-3:3]
set style line 1 lt 1 lw 50
plot '600030.macd' using 1:2 title 'DEA' with linespoints , \
'600030.macd' using 1:3 title 'DIF' with linespoints , \
'600030.macd' using 1:4 title 'MACD' with imp ls 1
#set term postscript eps enhanced color
#plot "600030.macd" using 1:4 title 'MACDs' with imp ls 1
save '600030macd.eps'
quit
这是一条镜像帖。来源:北邮人论坛 / paper / #1880同步于 2010/1/1
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Paper机器人发帖
请问如何在gnuplot里面混合画图?
yankee
2010/1/1镜像同步2 回复
订阅后,新回复会通过你的通知中心匿名送达。
2 条回复
几乎是照着例子改的,跟输入的数据精度有关吗?
数据:
0 -0.832743 -0.993396 0.160653
1 -0.904100 -0.975537 0.071437
2 -0.921783 -0.964786 0.043003
3 -0.954648 -0.962758 0.008110
4 -1.029347 -0.976076 -0.053271
5 -1.098478 -1.000556 -0.097921
6 -1.092259 -1.018897 -0.073362
7 -0.982403 -1.011598 0.029195
8 -0.910665 -0.991411 0.080746
9 -0.816715 -0.956161 0.139446
10 -0.698116 -0.905573 0.207457
11 -0.558594 -0.836589 0.277995
12 -0.446307 -0.758121 0.311814
13 -0.297069 -0.666148 0.369079
14 -0.151405 -0.564632 0.413227
15 0.015695 -0.448517 0.464212
16 0.125096 -0.332486 0.457582
17 0.233951 -0.219311 0.453261
18 0.280393 -0.119818 0.400212
19 0.220396 -0.052984 0.273380
20 0.210772 -0.000233 0.211005
21 0.145610 0.028711 0.116899
22 0.096261 0.041237 0.055024
23 0.100606 0.053584 0.047022
24 0.140067 0.071927 0.068140
25 0.205811 0.098231 0.107580
26 0.249378 0.129058 0.120320
27 0.286929 0.160981 0.125948
28 0.358607 0.235319 0.123288
29 0.352577 0.223559 0.129017
30 0.432770 0.264467 0.168303
31 0.483185 0.308049 0.175137
32 0.496902 0.345258 0.151643
33 0.622428 0.398176 0.224253
34 0.681708 0.454695 0.227013
35 0.710052 0.504645 0.205407
36 0.747803 0.552965 0.194838
37 0.806794 0.604030 0.202764
38 0.851965 0.655100 0.196865
39 0.780445 0.678536 0.101908
40 0.735759 0.689993 0.045766
41 0.555158 0.663039 -0.107881
42 0.329601 0.596924 -0.267323
43 0.298215 0.536547 -0.238332
44 0.319766 0.492755 -0.172989
45 0.328536 0.457917 -0.129381
46 0.361945 0.439022 -0.077077
47 0.500097 0.451025 0.049071
48 0.605915 0.479910 0.126005
49 0.615341 0.505775 0.109566
50 0.552605 0.517035 0.035570
51 0.519514 0.516123 0.003391
52 0.463635 0.504304 -0.040670
53 0.423281 0.487913 -0.064632
54 0.329369 0.457014 -0.127645
55 0.253425 0.417729 -0.164304
56 0.145956 0.365081 -0.219126
57 0.036668 0.299461 -0.262793
58 0.002918 0.240763 -0.237845
59 -0.100615 0.172400 -0.273015
60 -0.163269 0.107933 -0.271202
61 -0.158826 0.054581 -0.213407
62 -0.173635 0.008738 -0.182373
63 -0.099479 -0.011024 -0.088455
64 0.033934 -0.000450 0.034384
【 在 yankee (yankee) 的大作中提到: 】
: 我想同时画bar和line,请问能在同一个图里面输出吗?
: 这样行不行呢?
: set term postscript eps color blacktext "Helvetica" 24
: ...................