Skip to content

Instantly share code, notes, and snippets.

@t-nissie
Last active August 29, 2015 14:01
Show Gist options
  • Save t-nissie/24cc524481474bb497c5 to your computer and use it in GitHub Desktop.
Save t-nissie/24cc524481474bb497c5 to your computer and use it in GitHub Desktop.
Draw a histogram with GNUPLOT, or a bug in feram-0.22.03.tar.xz (See histogram.jpg below)
#!/usr/bin/env gnuplot
# histogram.gp
# Time-stamp: <2014-05-21 11:50:24 takeshi>
# Author: Takeshi NISHIMATSU
# Gist: https://gist.github.com/t-nissie/24cc524481474bb497c5
##
set terminal postscript portrait color dashed "Times-Roman" 20
set output "histogram.eps"
set ylabel 'count'
bin(x,width)=width*floor(x/width)+width/2
set multiplot
set xtics 0.1
set ytics 5
binwidth = 0.02
set label 1 at -0.15,23 "(a) rnd4.defects with a\n bug in feram-0.22.03"
set size 1.0, 0.55
set origin 0.0, 0.45
set yrange [0:25]
plot "rnd4.defects-0.22.03" using (bin($4,binwidth)):(1.0) smooth freq t 'x' with linespoints lw 3,\
"rnd4.defects-0.22.03" using (bin($5,binwidth)):(1.0) smooth freq t 'y' with linespoints lw 3,\
"rnd4.defects-0.22.03" using (bin($6,binwidth)):(1.0) smooth freq t 'z' with linespoints lw 3
set label 1 at -0.15,2 "(b) bug-fixed rnd4.defects"
set size 1.0, 0.46
set origin 0.0, 0.00
set yrange [0:20]
set key maxrow 2
plot "rnd4.defects-r2163" using (bin($4,binwidth)):(1.0) smooth freq t 'x' with linespoints lw 3,\
"rnd4.defects-r2163" using (bin($5,binwidth)):(1.0) smooth freq t 'y' with linespoints lw 3,\
"rnd4.defects-r2163" using (bin($6,binwidth)):(1.0) smooth freq t 'z' with linespoints lw 3,\
8.4 t 'average: 8.4' with lines lw 2
set nomultiplot
set output
!epstopdf.pl histogram.eps
#Local variables:
# compile-command: "gnuplot histogram.gp"
#End:
3 2 3 0.03150 -0.02323 0.19613
9 10 15 -0.00227 0.06386 0.18952
2 12 12 0.03802 0.18384 -0.06898
7 15 13 0.19163 0.05710 0.00428
1 5 9 0.07838 -0.18395 0.00434
0 12 12 -0.18025 0.07682 -0.04012
1 3 6 -0.07417 0.05435 0.17761
11 8 5 -0.09256 -0.06205 -0.16608
0 14 11 0.04251 0.01110 0.19512
0 8 4 -0.02316 -0.17574 0.09262
15 14 10 0.09251 0.06071 -0.16660
13 6 2 0.02718 -0.02862 0.19607
15 6 9 0.06087 -0.01188 0.19014
10 11 1 0.19024 0.05534 0.02734
13 13 10 -0.09809 -0.17167 -0.03012
10 2 4 -0.02098 -0.16027 -0.11779
1 10 2 0.03445 0.00479 0.19695
14 1 3 -0.00714 0.00302 -0.19985
3 13 0 0.19899 -0.01949 0.00478
13 5 15 -0.02796 0.19238 -0.04700
10 8 8 -0.06373 0.03190 0.18687
9 5 6 -0.11327 0.15168 -0.06451
0 6 8 0.07784 -0.05220 0.17668
0 10 8 -0.14743 -0.10829 -0.08086
3 12 0 -0.06202 -0.00660 0.19002
0 2 11 0.00261 0.16947 -0.10617
9 1 15 -0.14360 -0.04574 -0.13148
1 3 0 -0.08423 0.04329 0.17616
1 11 2 -0.19313 -0.03622 -0.03724
0 9 13 0.06900 0.14527 -0.11890
10 11 6 -0.19162 0.01858 0.05420
10 15 15 0.02884 -0.04768 0.19208
4 6 4 0.15950 -0.11993 0.01328
5 9 10 0.05832 -0.07727 0.17501
6 0 4 0.02671 0.00118 0.19820
3 8 14 0.15918 0.03487 -0.11596
0 15 7 -0.02425 -0.19264 0.04797
9 9 2 -0.00290 -0.00890 -0.19978
2 12 3 -0.01625 0.06194 0.18947
13 5 9 0.07518 0.06041 -0.17521
13 1 1 -0.02806 -0.14655 -0.13317
11 13 6 -0.00622 -0.00085 -0.19990
0 10 8 -0.15673 -0.03886 0.11801
9 0 6 -0.19060 -0.05744 0.01926
0 3 4 0.04139 0.14674 0.12944
4 8 4 -0.16051 0.10265 -0.06084
14 4 7 -0.01218 0.00252 -0.19961
1 12 4 -0.17881 0.08279 0.03424
13 10 10 -0.03838 -0.16753 0.10227
0 8 4 0.02877 0.02985 -0.19566
3 2 12 0.08340 -0.09827 0.15293
14 5 7 -0.18222 -0.03993 -0.07212
8 1 8 0.14807 0.12317 -0.05389
0 4 15 -0.06718 -0.18545 0.03309
0 0 14 0.00260 -0.03291 -0.19726
14 10 13 0.01428 0.09231 0.17685
1 1 9 -0.01224 -0.06096 0.19009
7 8 1 -0.10074 -0.00612 0.17266
3 8 11 -0.08613 0.08208 0.16077
3 11 15 0.05603 -0.00930 0.19177
12 14 13 -0.04648 0.01828 -0.19366
11 8 12 -0.19445 0.03805 0.02719
5 13 3 -0.09600 -0.12154 0.12654
10 15 8 0.09958 0.13584 -0.10785
1 4 2 -0.14051 0.13982 -0.02660
3 7 9 0.02148 -0.13825 0.14292
14 12 14 -0.05883 -0.08078 -0.17325
3 15 5 0.01016 -0.11440 -0.16374
11 6 6 -0.04195 0.09966 0.16825
5 14 3 0.10478 -0.15150 -0.07791
0 3 8 0.19833 -0.02135 -0.01449
1 9 1 -0.18258 0.00710 -0.08133
11 8 1 0.18059 -0.07239 -0.04633
8 12 13 -0.05869 -0.02484 0.18957
0 13 12 0.04588 0.19364 -0.01994
12 9 13 0.02191 -0.18667 -0.06838
2 0 12 0.01198 -0.07274 -0.18592
3 15 3 0.01041 0.03768 0.19614
7 8 13 -0.05162 -0.02025 -0.19216
5 15 11 0.08732 -0.17809 -0.02570
8 10 14 -0.17879 -0.07564 0.04809
1 3 14 -0.02257 0.03207 0.19612
8 6 12 0.01442 -0.08923 0.17841
1 13 2 -0.01103 -0.11639 -0.16227
4 5 10 -0.01610 -0.12253 -0.15725
5 0 1 0.11383 -0.06153 -0.15250
3 13 9 0.09999 -0.01353 0.17268
9 1 13 0.07914 -0.15258 0.10225
13 13 12 -0.14980 -0.07274 -0.11076
9 0 13 -0.19725 0.00875 -0.03187
2 2 2 -0.05168 -0.18471 -0.05665
15 10 14 -0.19368 -0.02820 -0.04114
9 3 4 -0.16111 -0.03358 -0.11364
11 10 8 0.15902 0.00207 0.12128
4 11 5 -0.00055 0.00039 -0.20000
4 13 3 -0.18035 0.06438 -0.05771
2 13 8 0.07092 0.16659 -0.08497
13 7 15 0.13624 0.06457 0.13141
12 2 7 -0.13913 -0.10556 -0.09747
11 0 12 -0.00610 0.13086 -0.15112
12 13 13 0.14858 -0.09933 -0.08976
8 13 11 0.18837 -0.06720 0.00015
2 3 6 -0.14399 -0.07893 0.11418
13 14 6 -0.01224 -0.05193 0.19275
6 4 13 -0.10672 -0.12167 0.11750
6 15 15 0.13814 0.08852 0.11437
12 15 8 0.16844 -0.08555 0.06565
1 6 1 -0.05133 -0.03635 -0.18985
2 4 15 0.05322 -0.02346 0.19136
9 9 11 -0.16878 0.09066 -0.05740
0 15 12 0.05967 -0.02857 -0.18874
3 8 0 -0.09060 0.17340 0.04154
12 6 0 0.03832 0.06352 -0.18573
5 14 1 0.08950 0.16417 0.07099
2 1 14 -0.10379 0.10059 0.13823
11 2 8 -0.04671 -0.19206 -0.03054
12 1 6 0.09772 0.04826 0.16770
11 10 10 0.08019 -0.10320 0.15139
9 11 9 0.00287 -0.02326 -0.19862
14 8 14 -0.06244 -0.02263 0.18865
1 3 6 0.01157 -0.00349 -0.19963
8 8 10 0.01351 -0.07266 -0.18584
14 7 13 0.01122 0.00893 -0.19949
2 11 1 0.04652 0.19450 -0.00278
13 12 2 -0.05995 0.07454 -0.17564
6 2 1 0.00500 -0.03002 0.19767
2 10 8 -0.03863 -0.09500 -0.17170
14 9 2 0.06348 -0.00509 -0.18959
12 5 7 -0.14384 0.11511 0.07785
5 12 15 0.18951 0.03732 -0.05190
3 5 7 0.13118 -0.03448 -0.14698
14 4 13 0.05905 0.00772 -0.19093
3 3 3 0.09767 -0.07546 -0.15737
9 12 0 -0.00784 0.02675 0.19805
9 8 2 -0.06553 -0.14974 -0.11526
1 12 3 0.01882 -0.07327 0.18514
12 15 9 -0.01443 0.01287 -0.19906
4 8 1 0.16269 -0.02256 0.11412
13 14 12 0.13075 -0.08103 0.12782
1 4 0 0.15344 -0.12796 0.00911
5 13 11 0.00858 0.02725 -0.19795
5 12 4 -0.09094 0.03329 0.17499
11 8 13 0.01535 -0.06894 -0.18712
1 2 0 0.19863 -0.00807 0.02194
14 12 15 -0.14203 -0.09362 -0.10517
8 14 0 -0.07894 0.11424 0.14393
15 3 13 -0.19221 0.01400 0.05348
5 5 13 -0.05075 0.05974 0.18400
5 10 4 -0.08720 -0.09462 0.15311
11 14 8 0.09490 -0.06923 -0.16187
7 5 3 0.16654 0.00588 -0.11059
1 11 2 0.13691 -0.05460 -0.13519
6 6 8 -0.04320 -0.11169 0.16019
7 2 2 -0.14091 0.06297 0.12720
6 8 11 -0.07097 0.08991 0.16395
10 9 12 0.04363 0.01684 0.19446
8 5 2 -0.00949 -0.02802 -0.19780
14 7 9 -0.15238 0.10728 -0.07260
12 14 11 0.10730 0.14063 -0.09333
5 1 4 -0.08359 -0.00072 0.18169
6 12 2 0.10040 -0.09015 0.14762
5 14 13 0.04951 -0.18763 0.04839
6 1 5 -0.11584 0.06902 -0.14771
14 10 6 -0.01855 0.01822 -0.19830
7 14 11 -0.11639 -0.10034 0.12801
8 3 10 0.18467 -0.05000 -0.05829
3 14 2 -0.01286 0.15807 -0.12186
3 11 2 0.16668 -0.09259 0.06037
12 3 1 -0.16296 -0.10576 0.04752
9 4 12 0.11109 -0.16406 -0.02728
4 15 12 -0.02413 -0.00621 0.19844
11 5 1 0.03595 -0.15453 0.12177
8 3 5 0.04534 0.05210 -0.18770
1 12 10 -0.18146 0.05678 -0.06204
10 1 1 0.09504 0.15872 0.07599
7 14 11 0.04572 0.16196 -0.10806
13 8 10 -0.01448 0.19007 -0.06052
1 8 4 0.03681 -0.16544 0.10618
7 10 10 -0.02341 -0.19075 0.05539
3 4 3 -0.15639 -0.11991 -0.03411
5 1 9 -0.05146 0.17571 0.08049
7 10 0 0.06873 0.12284 0.14208
11 4 15 0.01646 -0.13736 0.14444
11 1 4 0.00427 -0.09819 -0.17419
13 2 15 -0.07352 -0.03725 -0.18223
8 2 2 -0.18785 -0.06586 -0.01934
0 6 8 -0.00495 -0.17729 0.09244
12 8 2 -0.11322 -0.09805 -0.13254
0 7 5 0.19937 -0.00388 0.01538
0 2 14 -0.10865 -0.11188 -0.12521
5 3 11 -0.04182 -0.19510 0.01368
1 14 6 0.02112 0.14856 -0.13222
9 4 1 0.05427 0.19240 -0.00614
3 14 6 0.11363 0.15968 0.03988
15 8 3 -0.05239 0.18008 0.06947
4 0 13 -0.15260 0.11939 -0.04958
8 1 10 -0.19355 0.05011 -0.00533
1 9 5 -0.06850 -0.17900 0.05715
11 5 8 -0.11282 0.16495 -0.00793
13 12 9 -0.09501 0.12380 -0.12508
6 8 4 0.15496 0.12113 0.03626
14 5 13 0.08596 -0.15526 -0.09223
4 15 15 -0.09243 -0.12012 -0.13049
3 5 10 0.02806 0.14201 -0.13801
8 11 1 0.00422 -0.13610 -0.14649
4 15 13 0.13869 0.14393 0.00700
4 10 1 0.00063 0.19868 -0.02293
9 4 8 -0.16583 -0.06488 -0.09106
14 4 9 -0.14121 0.14160 -0.00318
15 10 7 -0.17933 -0.06656 -0.05841
2 4 12 -0.06206 -0.02826 -0.18801
4 1 13 -0.02782 -0.06664 0.18651
4 15 7 -0.00863 -0.08210 0.18217
14 1 4 0.03862 -0.15570 -0.11944
4 8 9 0.03949 0.15298 0.12262
10 8 5 0.06884 0.14956 0.11355
10 10 7 0.15800 0.07085 0.10008
8 15 0 -0.00302 0.12086 0.15932
10 4 3 0.05047 -0.12138 -0.15073
4 13 9 0.02112 -0.16015 0.11792
11 10 7 -0.05025 -0.16370 -0.10334
6 3 5 0.14705 -0.01353 0.13488
5 7 8 0.07828 0.17128 -0.06734
15 11 0 -0.18881 -0.06359 0.01746
3 1 8 -0.03695 0.16246 -0.11063
1 11 15 0.19174 0.00766 0.05638
10 5 11 0.16940 0.06866 0.08118
2 11 9 -0.12464 0.11319 0.10795
10 10 5 0.10681 -0.03381 -0.16567
15 2 4 0.19020 0.04700 -0.04021
15 5 0 -0.14088 -0.11873 -0.07781
2 2 15 -0.06173 -0.04633 -0.18451
6 15 2 -0.16693 0.00103 -0.11015
2 11 0 -0.17209 0.02171 -0.09957
4 11 3 0.15891 -0.11783 0.02940
1 11 4 -0.02069 0.19888 -0.00440
1 12 3 -0.14895 -0.09658 0.09212
7 1 8 0.02147 -0.03574 0.19561
0 11 10 -0.02326 -0.00859 0.19846
9 3 4 0.10938 0.06020 0.15624
1 8 10 0.18251 0.06696 0.04697
14 15 3 0.09745 -0.11966 0.12722
7 2 7 -0.15572 0.11825 -0.04205
7 10 9 0.13372 -0.14411 -0.03676
15 14 13 -0.06769 -0.18814 0.00460
9 5 7 0.12264 0.00262 -0.15796
5 15 2 0.02952 -0.18826 0.06070
12 12 5 -0.03914 -0.15733 -0.11711
6 3 9 -0.11085 0.03460 -0.16284
15 7 6 0.14221 0.01660 -0.13965
9 9 6 -0.10125 -0.11977 0.12411
8 15 11 0.02730 0.17213 0.09811
1 12 1 0.19884 0.01204 0.01786
14 10 2 -0.18006 -0.05629 -0.06641
7 0 6 0.04292 0.00527 0.19527
3 6 15 0.10314 0.15087 0.08123
9 15 4 0.09406 0.03140 0.17368
12 11 13 -0.13138 -0.14531 0.04031
8 8 7 0.03371 -0.04237 0.19253
4 1 2 -0.16451 -0.11303 0.01267
13 14 10 0.09045 -0.07192 -0.16323
2 6 13 -0.09719 0.16179 0.06617
2 4 8 -0.09759 -0.01760 -0.17368
10 12 8 -0.19253 -0.01379 0.05238
9 12 8 0.01365 -0.05840 -0.19080
12 1 5 -0.15654 0.07283 -0.10095
6 12 11 0.09747 -0.12190 -0.12506
1 9 12 0.08284 -0.16122 0.08453
1 11 11 -0.10001 -0.15857 0.06968
14 0 15 0.05209 0.12498 -0.14719
4 4 13 -0.01155 -0.09728 0.17436
7 3 5 0.11775 0.15500 0.04595
3 0 10 0.13663 -0.14512 0.01648
14 6 8 -0.03863 0.18507 0.06525
13 12 0 0.03527 -0.19681 -0.00477
0 5 4 -0.14462 -0.11103 0.08221
12 6 13 0.11424 0.01877 0.16309
9 6 7 -0.03112 -0.12717 0.15119
2 8 12 -0.05188 -0.12255 0.14930
10 8 2 -0.05319 -0.09532 -0.16758
12 2 9 0.05222 -0.19191 0.02109
13 7 11 -0.13398 0.02299 0.14670
5 4 14 -0.13010 0.11313 -0.10137
15 15 13 -0.02460 0.16106 0.11599
12 8 1 -0.02378 0.09795 -0.17274
14 12 13 -0.13748 -0.13822 -0.04467
8 12 12 -0.03684 0.02751 0.19464
13 2 0 -0.14411 -0.11907 -0.07110
13 11 4 -0.18144 -0.05212 -0.06606
11 8 15 -0.19360 -0.02215 -0.04503
10 1 15 0.15618 -0.03672 0.11941
2 8 8 0.07404 0.07656 0.16928
3 5 3 0.07858 -0.18381 -0.00616
11 15 13 0.15832 -0.11711 -0.03493
7 2 14 0.09825 0.13996 0.10372
8 7 11 0.03296 0.15935 0.11628
11 2 4 -0.11540 -0.00499 -0.16327
4 9 7 -0.04740 0.01195 0.19393
13 3 14 -0.17356 0.03323 0.09366
7 14 3 -0.13109 0.15018 -0.01618
7 7 2 0.01207 0.17651 -0.09327
0 5 5 0.17277 -0.10025 0.00999
11 2 10 0.07474 0.17427 -0.06358
6 5 12 -0.16364 0.10843 -0.03827
9 6 6 0.19619 -0.03537 0.01610
0 7 11 0.01946 0.16896 0.10523
15 0 15 0.01112 0.16673 -0.10990
10 6 2 -0.10172 -0.08403 0.15031
0 2 8 -0.19990 -0.00568 0.00308
2 5 14 -0.18073 0.08561 -0.00268
11 7 9 -0.18400 -0.05267 -0.05807
0 0 14 0.01241 -0.10236 -0.17137
8 14 4 -0.03129 0.11312 0.16194
14 10 1 -0.08313 -0.15285 0.09862
0 2 9 -0.10136 0.17223 -0.00787
1 1 11 0.03241 0.04802 0.19142
2 1 15 0.17041 0.09216 0.04967
11 11 11 0.10034 0.15282 0.08111
10 3 8 -0.00565 -0.12670 0.15464
1 7 6 0.10905 -0.08969 0.14165
6 2 13 0.17436 0.01405 -0.09696
4 6 0 0.09292 -0.05871 -0.16709
8 2 6 0.02798 -0.04124 -0.19369
7 3 1 -0.14996 0.11845 -0.05900
5 0 1 0.05386 0.15294 -0.11709
0 13 4 -0.16972 -0.01759 -0.10434
15 0 14 -0.02563 0.16394 0.11165
11 2 12 -0.08943 0.04671 -0.17269
12 2 11 0.19995 0.00195 -0.00415
2 11 1 0.06985 0.09290 0.16276
3 10 11 0.11007 -0.16545 -0.02261
5 1 6 -0.10188 -0.09951 0.14042
6 14 4 -0.06128 -0.19000 0.01202
4 6 2 0.06825 0.18654 0.02329
9 8 9 0.15337 -0.12651 -0.02173
0 11 8 0.18910 -0.06194 0.02013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment