|
|
|
|
|
|
y****e 发帖数: 1012 | 1 set term postscript eps color blacktext "Helvetica" 24
set output 'p1.eps'
set autoscale # scale axes automaticallyun
set label # remove any previous labels
set xtic auto # set xtics automatically
set ytic auto # set ytics automatically
set title "I/O Traffic"
set xlabel "Interval(5s)"
set ylabel "Data(KB)"
set key 0.01,10000
set xr [0:100]
set yr [0:10000]
plot "p1.tmp" using 1:2 title 'r0' with linespoints, \
"p1.tmp" using 1:3 title 'r1' with linespoints, \
"p1.tmp" using 1:4 title 'r2' with linespoints, \
"p1.tmp" using 1:5 title 'r3' with linespoints, \
"p1.tmp" using 1:6 title 'r4' with linespoints, \
"p1.tmp" using 1:7 title 'r5' with linespoints, \
"p1.tmp" using 1:8 title 'r6' with linespoints, \
save 'p1.eps'
quit
这gnuplot怎么调试啊?问下大家~~~
谢谢!
////gnuplot 错误输出如下:
GSview 4.9 2007-11-18
GPL Ghostscript 9.00 (2010-09-14)
Copyright (C) 2010 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Displaying non DSC file F:/Rutgers/research/virtualization/exp2/xenoprof/p2.
eps
Error: /undefined in #!
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostring
val-- 2 %stopped_push --nostringval-- --nostringval-- false 1
%stopped_push 1910 1 3 %oparray_pop 1909 1 3 %oparray_pop
1893 1 3 %oparray_pop 1787 1 3 %oparray_pop --nostringval--
%errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostrin
gval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:1163/1684(ro)(G)-- --dict:0/20(G)-- --dict:81/200(L)--
Current allocation mode is local
Last OS error: No such file or directory | y****e 发帖数: 1012 | 2 unset log
unset label
数据部分:
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0
1 0 0 0 0 0 0 0 0 0
0 0 0 0 0
2 0 0 0 0 0 0 0 0 0
0 0 0 0 0
3 0 0 0 0 0 0 0 0 0
0 0 0 0 0
4 0 0 0 0 0 0 0 0 0
0 0 0 0 0
5 0 0 0 0 0 0 0 0 0
0 0 0 0 0
6 0 0 0 0 0 0 0 0 0
0 0 0 0 0
7 0 0 0 0 0 0 0 0 0
0 0 0 0 0
8 0 0 0 0 0 0 0 0 0
0 0 0 0 0
9 0 0 0 0 0 0 0 0 0
0 0 0 0 0
10 0 0 0 0 0 0 0 0 0
0 0 0 0 0
11 0 0 0 0 0 0 0 0 0
0 0 0 0 0
12 0 0 0 0 0 0 0 0 0
0 0 0 0 0
13 257 182 172 0 0 296 12 122 0
0 0 405 308 65
14 425 286 313 0 0 447 19 8 0
0 0 752 535 87
15 743 379 607 0 0 264 6 90 0
0 0 1355 1137 77
16 1361 1061 2012 0 0 170 9 139 0
0 0 3200 1016 109
17 649 320 624 0 0 245 20 90 0
0 0 1262 1237 74
18 905 468 907 0 0 77 8 74 0
0 0 1825 1783 75
19 851 527 491 0 0 261 19 12 0
0 0 1292 911 93
20 1032 492 899 0 0 114 8 41 0
0 0 1944 1583 93
21 951 510 1066 0 0 83 11 84 0
0 0 2025 1681 81
22 1252 838 2077 0 0 95 11 56 0
0 0 3301 1392 84
23 889 474 907 0 0 91 8 80 0
0 0 1785 1756 92
24 910 456 882 0 0 84 10 88 0
0 0 1799 1749 77
25 900 490 861 0 0 103 14 73 0
0 0 1783 1619 86
26 1372 1095 2105 0 0 154 10 80 0
0 0 3431 941 102
27 575 387 418 0 0 319 24 92 0
0 0 978 803 98
28 739 550 333 0 0 337 27 125 0
0 0 1034 627 100
29 572 285 525 0 0 303 17 96 0
0 0 1103 879 84
30 964 486 887 0 0 93 14 47 0
0 0 1887 1618 85
31 872 428 855 0 0 105 9 144 0
0 0 1737 1659 90
32 1987 1684 2017 0 0 99 13 87 0
0 0 3899 949 95
33 492 448 104 0 0 493 15 144 0
0 0 525 70 81
34 525 513 101 0 0 488 17 120 0
0 0 547 31 84
35 469 462 127 0 0 491 18 102 0
0 0 501 65 81
36 554 513 188 0 0 498 23 112 0
0 0 645 48 85
37 486 483 140 0 0 493 8 95 0
0 0 521 70 81
38 586 577 118 0 0 476 18 133 0
0 0 589 57 100
39 516 477 105 0 0 493 21 114 0
0 0 512 56 95
40 425 411 230 0 0 446 10 33 0
0 0 491 92 128
41 310 279 468 0 0 440 3 0 0
0 0 672 132 131
42 512 454 838 0 0 357 8 26 0
0 0 1152 231 225
43 773 720 538 0 0 329 15 115 0
0 0 1004 193 241
44 469 426 758 0 0 407 5 117 0
0 0 1064 190 200
45 513 454 789 0 0 340 9 45 0
0 0 1122 220 240
46 628 548 893 0 0 327 7 118 0
0 0 1306 241 254
47 802 752 354 0 0 347 18 139 0
0 0 829 167 221
48 438 379 573 0 0 429 3 74 0
0 0 820 191 204
49 516 468 801 0 0 363 6 58 0
0 0 1135 225 221
50 813 757 540 0 0 338 19 134 0
0 0 1043 173 240
51 481 429 723 0 0 410 7 66 0
0 0 1041 199 210
52 516 477 849 0 0 322 7 106 0
0 0 1164 247 240
53 776 724 355 0 0 349 19 122 0
0 0 782 213 231
54 430 387 648 0 0 457 4 3 0
0 0 928 180 200
55 579 521 902 0 0 312 9 93 0
0 0 1275 247 239
56 632 554 942 0 0 326 14 144 0
0 0 1331 259 248
57 742 685 359 0 0 331 21 113 0
0 0 762 205 219
58 511 461 573 0 0 494 5 31 0
0 0 921 144 171
59 601 534 862 0 0 333 10 142 0
0 0 1238 269 236
60 693 657 452 0 0 332 17 134 0
0 0 833 200 227
61 544 510 758 0 0 411 10 115 0
0 0 1107 192 218
62 528 459 735 0 0 353 6 127 0
0 0 1079 188 242
63 734 686 496 0 0 374 20 110 0
0 0 938 186 208
64 461 410 693 0 0 427 0 51 0
0 0 993 201 196
65 749 696 636 0 0 356 8 132 0
0 0 1105 190 247
66 531 488 786 0 0 392 8 136 0
0 0 1162 193 200
67 550 498 830 0 0 313 14 99 0
0 0 1180 291 226
68 748 698 514 0 0 339 16 79 0
0 0 973 160 225
69 467 426 658 0 0 443 4 25 0
0 0 974 201 174
70 520 475 796 0 0 269 9 98 0
0 0 1107 236 228
71 453 403 697 0 0 312 5 57 0
0 0 967 187 212
72 620 570 962 0 0 328 12 131 0
0 0 1371 313 227
73 528 475 777 0 0 356 16 61 0
0 0 1119 251 231
74 565 510 853 0 0 337 14 116 0
0 0 1218 237 242
75 571 519 815 0 0 344 10 53 0
0 0 1164 185 251
76 576 528 724 0 0 315 7 130 0
0 0 1025 232 270
77 745 651 152 0 0 369 15 133 0
0 0 499 221 183
78 387 322 358 0 0 516 5 14 0
0 0 597 140 145
79 489 435 648 0 0 415 3 86 0
0 0 964 191 206
80 567 518 836 1 2 347 9 99 1
0 2 1165 218 237
81 570 509 799 3 17 349 17 71 5
2 5 1157 176 234
82 585 542 856 2 17 343 8 132 6
3 5 1220 254 245
83 558 521 735 6 14 348 8 118 13
0 6 1058 202 246
84 470 424 730 1 21 354 11 53 2
2 7 1055 176 199
85 559 507 797 1 29 324 9 60 5
1 11 1107 212 256
86 568 526 641 2 11 331 8 44 3
1 4 956 199 236
87 373 344 496 0 8 276 5 0 4
1 1 699 125 163
88 0 0 0 0 0 0 0 0 0
0 0 0 0 0
89 0 0 0 0 0 0 0 0 0
0 0 0 0 0
【在 y****e 的大作中提到】 : set term postscript eps color blacktext "Helvetica" 24 : set output 'p1.eps' : set autoscale # scale axes automaticallyun : set label # remove any previous labels : set xtic auto # set xtics automatically : set ytic auto # set ytics automatically : set title "I/O Traffic" : set xlabel "Interval(5s)" : set ylabel "Data(KB)" : set key 0.01,10000
| s*****g 发帖数: 5159 | 3 用附件传上来吧.
【在 y****e 的大作中提到】 : unset log : unset label : 数据部分: : 0 0 0 0 0 0 0 0 0 0 : 0 0 0 0 0 : 1 0 0 0 0 0 0 0 0 0 : 0 0 0 0 0 : 2 0 0 0 0 0 0 0 0 0 : 0 0 0 0 0 : 3 0 0 0 0 0 0 0 0 0
| y****e 发帖数: 1012 | 4 好像只能发图片了。实在是麻烦大家了~~
【在 s*****g 的大作中提到】 : 用附件传上来吧. : : : : :
| y****e 发帖数: 1012 | 5 请问gnuplot怎么定位错误啊,出了问题如何debug呢?
顺带问下~~
【在 s*****g 的大作中提到】 : 用附件传上来吧. : : : : :
| r*****z 发帖数: 906 | 6 我用的是gnuplot 4.4,所以需要对你的命令做一点儿修改。
修改后的如下:
set term postscript eps color blacktext "Helvetica" 24
set output 'p1.eps'
set autoscale # scale axes automaticallyun
unset log
unset label
set xtic auto # set xtics automatically
set ytic auto # set ytics automatically
set title "I/O Traffic"
set xlabel "Interval(5s)"
set ylabel "Data(KB)"
set key at 1,100
set xr [0:100]
set yr [0:10000]
plot "p1.tmp" using 1:2 title 'r0' with linespoints, \
"p1.tmp" using 1:3 title 'r1' with linespoints, \
"p1.tmp" using 1:4 title 'r2' with linespoints, \
"p1.tmp" using 1:5 title 'r3' with linespoints, \
"p1.tmp" using 1:6 title 'r4' with linespoints, \
"p1.tmp" using 1:7 title 'r5' with linespoints, \
"p1.tmp" using 1:8 title 'r6' with linespoints, \
"p1.tmp" using 1:9 title 'r12' with linespoints, \
"p1.tmp" using 1:10 title 'r26' with linespoints, \
"p1.tmp" using 1:11 title 'r27' with linespoints, \
"p1.tmp" using 1:12 title 'r28' with linespoints, \
"p1.tmp" using 1:13 title 'r29' with linespoints, \
"p1.tmp" using 1:14 title 'r30' with linespoints, \
"p1.tmp" using 1:15 title 'r31' with linespoints
#save 'p1.eps'
quit
除了set key那句外,主要是要把save语句注释掉。
生成的eps图附上。
【在 y****e 的大作中提到】 : set term postscript eps color blacktext "Helvetica" 24 : set output 'p1.eps' : set autoscale # scale axes automaticallyun : set label # remove any previous labels : set xtic auto # set xtics automatically : set ytic auto # set ytics automatically : set title "I/O Traffic" : set xlabel "Interval(5s)" : set ylabel "Data(KB)" : set key 0.01,10000
| r*****z 发帖数: 906 | 7
【在 r*****z 的大作中提到】 : 我用的是gnuplot 4.4,所以需要对你的命令做一点儿修改。 : 修改后的如下: : set term postscript eps color blacktext "Helvetica" 24 : set output 'p1.eps' : set autoscale # scale axes automaticallyun : unset log : unset label : set xtic auto # set xtics automatically : set ytic auto # set ytics automatically : set title "I/O Traffic"
| y****e 发帖数: 1012 | 8 哦,可以了。真的谢谢这个版,每次发帖都有热心的同学回答,哈哈~~
另外问一下,图标(r0,r1...)能放到图片的空白位置吗?
谢谢!
【在 r*****z 的大作中提到】
| y****e 发帖数: 1012 | 9 set key outside right top vertical Right noreverse enhanced autotitles box l
inetype -1 linewidth 1.000
【在 y****e 的大作中提到】 : 哦,可以了。真的谢谢这个版,每次发帖都有热心的同学回答,哈哈~~ : 另外问一下,图标(r0,r1...)能放到图片的空白位置吗? : 谢谢!
|
|
|
|
|
|
|