Skip to content

Instantly share code, notes, and snippets.

@tmplt
Created February 15, 2018 20:52
Show Gist options
  • Save tmplt/db376c60ea0972df012792e737f467c4 to your computer and use it in GitHub Desktop.
Save tmplt/db376c60ea0972df012792e737f467c4 to your computer and use it in GitHub Desktop.
Histogram with two insets, zooming into sub-domains
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
0.0 0
0.0010420332355816227 0
0.0020840664711632454 0
0.003126099706744868 0
0.004168132942326491 0
0.005210166177908113 0
0.006252199413489736 0
0.007294232649071359 0
0.008336265884652982 0
0.009378299120234603 0
0.010420332355816226 0
0.01146236559139785 0
0.012504398826979473 0
0.013546432062561094 0
0.014588465298142717 0
0.015630498533724342 0
0.016672531769305964 0
0.017714565004887585 0
0.018756598240469206 0
0.01979863147605083 0
0.020840664711632453 0
0.021882697947214074 0
0.0229247311827957 0
0.023966764418377324 0
0.025008797653958945 0
0.026050830889540567 0
0.027092864125122188 0
0.028134897360703813 0
0.029176930596285434 0
0.030218963831867056 0
0.031260997067448684 0
0.032303030303030306 0
0.03334506353861193 0
0.03438709677419355 0
0.03542913000977517 0
0.03647116324535679 0
0.03751319648093841 0
0.03855522971652004 0
0.03959726295210166 0
0.040639296187683284 0
0.041681329423264905 0
0.04272336265884653 0
0.04376539589442815 0
0.04480742913000977 0
0.0458494623655914 0
0.046891495601173026 0
0.04793352883675465 0
0.04897556207233627 0
0.05001759530791789 0
0.05105962854349951 0
0.05210166177908113 0
0.053143695014662755 0
0.054185728250244376 0
0.055227761485826005 0
0.056269794721407626 1
0.05731182795698925 1
0.05835386119257087 1
0.05939589442815249 0
0.06043792766373411 0
0.06147996089931573 0
0.06252199413489737 1
0.06356402737047899 0
0.06460606060606061 0
0.06564809384164223 0
0.06669012707722385 1
0.06773216031280548 0
0.0687741935483871 2
0.06981622678396872 1
0.07085826001955034 0
0.07190029325513196 0
0.07294232649071358 0
0.0739843597262952 0
0.07502639296187683 1
0.07606842619745846 0
0.07711045943304008 0
0.0781524926686217 0
0.07919452590420333 0
0.08023655913978495 0
0.08127859237536657 0
0.08232062561094819 0
0.08336265884652981 0
0.08440469208211143 0
0.08544672531769305 0
0.08648875855327467 0
0.0875307917888563 0
0.08857282502443792 0
0.08961485826001954 0
0.09065689149560116 0
0.0916989247311828 0
0.09274095796676443 0
0.09378299120234605 0
0.09482502443792767 0
0.0958670576735093 22
0.09690909090909092 451
0.09795112414467254 618
0.09899315738025416 643
0.10003519061583578 629
0.1010772238514174 590
0.10211925708699902 679
0.10316129032258065 636
0.10420332355816227 660
0.10524535679374389 641
0.10628739002932551 576
0.10732942326490713 648
0.10837145650048875 584
0.10941348973607039 622
0.11045552297165201 593
0.11149755620723363 629
0.11253958944281525 559
0.11358162267839687 584
0.1146236559139785 565
0.11566568914956012 492
0.11670772238514174 553
0.11774975562072336 560
0.11879178885630498 577
0.1198338220918866 572
0.12087585532746822 591
0.12191788856304984 616
0.12295992179863147 614
0.12400195503421309 594
0.12504398826979474 581
0.12608602150537634 619
0.12712805474095798 615
0.1281700879765396 621
0.12921212121212122 653
0.13025415444770283 615
0.13129618768328447 627
0.13233822091886607 648
0.1333802541544477 630
0.13442228739002932 617
0.13546432062561095 618
0.13650635386119256 598
0.1375483870967742 628
0.1385904203323558 613
0.13963245356793744 561
0.14067448680351904 538
0.14171652003910068 529
0.1427585532746823 524
0.14380058651026392 516
0.14484261974584553 480
0.14588465298142717 503
0.14692668621700877 537
0.1479687194525904 506
0.14901075268817204 544
0.15005278592375365 511
0.15109481915933531 531
0.15213685239491692 505
0.15317888563049856 514
0.15422091886608016 534
0.1552629521016618 483
0.1563049853372434 521
0.15734701857282504 539
0.15838905180840665 498
0.15943108504398829 520
0.1604731182795699 477
0.16151515151515153 510
0.16255718475073314 501
0.16359921798631477 474
0.16464125122189638 506
0.16568328445747801 511
0.16672531769305962 512
0.16776735092864126 504
0.16880938416422286 480
0.1698514173998045 511
0.1708934506353861 477
0.17193548387096774 452
0.17297751710654935 492
0.17401955034213099 495
0.1750615835777126 471
0.17610361681329423 501
0.17714565004887584 488
0.17818768328445747 493
0.17922971652003908 473
0.1802717497556207 465
0.18131378299120232 468
0.18235581622678396 449
0.1833978494623656 449
0.18443988269794723 458
0.18548191593352886 443
0.18652394916911047 431
0.1875659824046921 472
0.1886080156402737 447
0.18965004887585535 464
0.19069208211143696 412
0.1917341153470186 436
0.1927761485826002 412
0.19381818181818183 463
0.19486021505376344 445
0.19590224828934508 439
0.19694428152492668 434
0.19798631476050832 426
0.19902834799608993 428
0.20007038123167156 421
0.20111241446725317 408
0.2021544477028348 463
0.2031964809384164 404
0.20423851417399805 430
0.20528054740957966 458
0.2063225806451613 432
0.2073646138807429 445
0.20840664711632453 420
0.20944868035190614 452
0.21049071358748778 426
0.21153274682306938 383
0.21257478005865102 426
0.21361681329423263 412
0.21465884652981426 427
0.21570087976539587 407
0.2167429130009775 435
0.21778494623655914 397
0.21882697947214078 405
0.2198690127077224 331
0.22091104594330402 397
0.22195307917888565 378
0.22299511241446726 365
0.2240371456500489 344
0.2250791788856305 361
0.22612121212121214 381
0.22716324535679375 318
0.22820527859237538 397
0.229247311827957 355
0.23028934506353863 339
0.23133137829912023 326
0.23237341153470187 370
0.23341544477028348 373
0.2344574780058651 346
0.23549951124144672 359
0.23654154447702835 363
0.23758357771260996 358
0.2386256109481916 334
0.2396676441837732 353
0.24070967741935484 370
0.24175171065493645 318
0.24279374389051808 363
0.2438357771260997 320
0.24487781036168133 340
0.24591984359726293 327
0.24696187683284457 329
0.24800391006842618 311
0.2490459433040078 310
0.2500879765395895 305
0.2511300097751711 356
0.2521720430107527 336
0.2532140762463343 327
0.25425610948191596 359
0.25529814271749757 323
0.2563401759530792 333
0.25738220918866084 309
0.25842424242424245 332
0.25946627565982405 358
0.26050830889540566 313
0.2615503421309873 305
0.26259237536656893 296
0.26363440860215054 322
0.26467644183773215 322
0.2657184750733138 282
0.2667605083088954 324
0.267802541544477 285
0.26884457478005863 326
0.2698866080156403 297
0.2709286412512219 293
0.2719706744868035 318
0.2730127077223851 297
0.2740547409579668 276
0.2750967741935484 308
0.27613880742913 299
0.2771808406647116 293
0.27822287390029327 287
0.2792649071358749 293
0.2803069403714565 310
0.2813489736070381 295
0.28239100684261975 294
0.28343304007820136 247
0.28447507331378297 281
0.2855171065493646 287
0.28655913978494624 283
0.28760117302052784 263
0.28864320625610945 263
0.28968523949169106 263
0.2907272727272727 277
0.29176930596285433 277
0.29281133919843594 258
0.29385337243401755 274
0.2948954056695992 247
0.2959374389051808 274
0.2969794721407624 250
0.2980215053763441 272
0.2990635386119257 248
0.3001055718475073 233
0.30114760508308897 245
0.30218963831867063 278
0.30323167155425224 267
0.30427370478983384 281
0.30531573802541545 275
0.3063577712609971 242
0.3073998044965787 214
0.30844183773216033 226
0.30948387096774194 214
0.3105259042033236 237
0.3115679374389052 227
0.3126099706744868 256
0.3136520039100684 234
0.3146940371456501 213
0.3157360703812317 262
0.3167781036168133 275
0.3178201368523949 242
0.31886217008797657 234
0.3199042033235582 225
0.3209462365591398 219
0.3219882697947214 222
0.32303030303030306 240
0.32407233626588466 223
0.32511436950146627 229
0.32615640273704793 233
0.32719843597262954 236
0.32824046920821115 233
0.32928250244379276 204
0.33032453567937436 201
0.33136656891495603 212
0.33240860215053764 213
0.33345063538611924 202
0.3344926686217009 202
0.3355347018572825 208
0.3365767350928641 179
0.33761876832844573 202
0.3386608015640274 173
0.339702834799609 193
0.3407448680351906 190
0.3417869012707722 176
0.3428289345063539 183
0.3438709677419355 181
0.3449130009775171 192
0.3459550342130987 179
0.34699706744868036 162
0.34803910068426197 184
0.3490811339198436 167
0.3501231671554252 153
0.35116520039100685 171
0.35220723362658846 163
0.35324926686217006 185
0.35429130009775167 185
0.35533333333333333 150
0.35637536656891494 137
0.35741739980449655 156
0.35845943304007816 161
0.3595014662756598 174
0.3605434995112414 156
0.36158553274682304 142
0.36262756598240464 148
0.3636695992179863 153
0.3647116324535679 158
0.3657536656891495 131
0.3667956989247312 146
0.36783773216031285 139
0.36887976539589445 146
0.36992179863147606 149
0.3709638318670577 148
0.37200586510263933 148
0.37304789833822094 135
0.37408993157380255 119
0.3751319648093842 128
0.3761739980449658 126
0.3772160312805474 128
0.37825806451612903 142
0.3793000977517107 151
0.3803421309872923 127
0.3813841642228739 127
0.3824261974584555 123
0.3834682306940372 127
0.3845102639296188 129
0.3855522971652004 113
0.386594330400782 118
0.38763636363636367 112
0.3886783968719453 134
0.3897204301075269 104
0.3907624633431085 115
0.39180449657869015 110
0.39284652981427176 97
0.39388856304985337 117
0.394930596285435 101
0.39597262952101664 93
0.39701466275659825 80
0.39805669599217985 91
0.39909872922776146 85
0.4001407624633431 91
0.40118279569892473 100
0.40222482893450634 90
0.403266862170088 77
0.4043088954056696 101
0.4053509286412512 96
0.4063929618768328 95
0.40743499511241443 82
0.4084770283479961 106
0.4095190615835777 91
0.4105610948191593 101
0.411603128054741 74
0.4126451612903226 81
0.4136871945259042 76
0.4147292277614858 71
0.41577126099706746 84
0.41681329423264907 79
0.4178553274682307 80
0.4188973607038123 75
0.41993939393939395 75
0.42098142717497555 66
0.42202346041055716 66
0.42306549364613877 67
0.42410752688172043 69
0.42514956011730204 72
0.42619159335288365 58
0.42723362658846525 66
0.4282756598240469 60
0.4293176930596285 64
0.43035972629521013 64
0.43140175953079174 56
0.4324437927663734 59
0.433485826001955 47
0.4345278592375367 49
0.4355698924731183 50
0.43661192570869994 45
0.43765395894428155 52
0.43869599217986316 53
0.4397380254154448 46
0.44078005865102643 56
0.44182209188660804 62
0.44286412512218964 57
0.4439061583577713 45
0.4449481915933529 46
0.4459902248289345 49
0.44703225806451613 55
0.4480742913000978 34
0.4491163245356794 37
0.450158357771261 50
0.4512003910068426 49
0.4522424242424243 53
0.4532844574780059 59
0.4543264907135875 39
0.4553685239491691 53
0.45641055718475076 54
0.4574525904203324 34
0.458494623655914 42
0.4595366568914956 34
0.46057869012707725 46
0.46162072336265886 40
0.46266275659824047 50
0.4637047898338221 37
0.46474682306940374 31
0.46578885630498534 45
0.46683088954056695 31
0.46787292277614856 37
0.4689149560117302 22
0.46995698924731183 35
0.47099902248289344 32
0.47204105571847504 46
0.4730830889540567 19
0.4741251221896383 37
0.4751671554252199 32
0.47620918866080153 30
0.4772512218963832 30
0.4782932551319648 31
0.4793352883675464 30
0.48037732160312807 34
0.4814193548387097 32
0.4824613880742913 30
0.4835034213098729 34
0.4845454545454545 32
0.48558748778103616 21
0.48662952101661777 22
0.4876715542521994 35
0.48871358748778104 36
0.48975562072336265 25
0.49079765395894426 33
0.49183968719452587 31
0.49288172043010753 29
0.49392375366568914 29
0.49496578690127074 33
0.49600782013685235 27
0.497049853372434 24
0.4980918866080156 25
0.49913391984359723 18
0.500175953079179 19
0.5012179863147606 32
0.5022600195503422 18
0.5033020527859238 27
0.5043440860215054 21
0.505386119257087 26
0.5064281524926686 17
0.5074701857282503 29
0.5085122189638319 29
0.5095542521994135 28
0.5105962854349951 22
0.5116383186705767 19
0.5126803519061583 22
0.51372238514174 26
0.5147644183773217 30
0.5158064516129033 21
0.5168484848484849 25
0.5178905180840665 22
0.5189325513196481 15
0.5199745845552297 23
0.5210166177908113 20
0.5220586510263929 32
0.5231006842619746 20
0.5241427174975563 35
0.5251847507331379 14
0.5262267839687195 24
0.5272688172043011 21
0.5283108504398827 15
0.5293528836754643 28
0.5303949169110459 23
0.5314369501466276 33
0.5324789833822092 28
0.5335210166177908 25
0.5345630498533724 22
0.535605083088954 20
0.5366471163245357 20
0.5376891495601173 20
0.5387311827956989 24
0.5397732160312806 22
0.5408152492668622 25
0.5418572825024438 34
0.5428993157380254 26
0.543941348973607 24
0.5449833822091886 19
0.5460254154447702 22
0.547067448680352 19
0.5481094819159336 21
0.5491515151515152 19
0.5501935483870968 26
0.5512355816226784 16
0.55227761485826 21
0.5533196480938416 35
0.5543616813294232 28
0.5554037145650048 14
0.5564457478005865 23
0.5574877810361681 25
0.5585298142717497 20
0.5595718475073314 23
0.560613880742913 19
0.5616559139784946 15
0.5626979472140762 32
0.5637399804496579 17
0.5647820136852395 17
0.5658240469208211 16
0.5668660801564027 21
0.5679081133919843 13
0.5689501466275659 18
0.5699921798631475 20
0.5710342130987291 18
0.5720762463343109 18
0.5731182795698925 25
0.5741603128054741 16
0.5752023460410557 28
0.5762443792766373 20
0.5772864125122189 13
0.5783284457478005 30
0.5793704789833821 19
0.5804125122189638 20
0.5814545454545454 25
0.582496578690127 21
0.5835386119257087 20
0.5845806451612903 21
0.5856226783968719 21
0.5866647116324535 26
0.5877067448680351 13
0.5887487781036168 23
0.5897908113391984 26
0.59083284457478 18
0.5918748778103616 23
0.5929169110459432 18
0.5939589442815248 17
0.5950009775171065 24
0.5960430107526882 17
0.5970850439882698 16
0.5981270772238514 33
0.599169110459433 15
0.6002111436950146 21
0.6012531769305963 18
0.6022952101661779 26
0.6033372434017595 27
0.6043792766373413 29
0.6054213098729229 23
0.6064633431085045 11
0.6075053763440861 20
0.6085474095796677 29
0.6095894428152493 15
0.6106314760508309 23
0.6116735092864125 32
0.6127155425219942 27
0.6137575757575758 22
0.6147996089931574 26
0.615841642228739 28
0.6168836754643207 36
0.6179257086999023 27
0.6189677419354839 33
0.6200097751710656 48
0.6210518084066472 44
0.6220938416422288 43
0.6231358748778104 46
0.624177908113392 65
0.6252199413489736 70
0.6262619745845552 64
0.6273040078201368 54
0.6283460410557185 58
0.6293880742913002 44
0.6304301075268818 44
0.6314721407624634 41
0.632514173998045 27
0.6335562072336266 19
0.6345982404692082 19
0.6356402737047898 21
0.6366823069403715 12
0.6377243401759531 6
0.6387663734115347 9
0.6398084066471164 9
0.640850439882698 6
0.6418924731182796 6
0.6429345063538612 9
0.6439765395894428 2
0.6450185728250245 2
0.6460606060606061 4
0.6471026392961877 4
0.6481446725317693 7
0.6491867057673509 4
0.6502287390029325 9
0.6512707722385142 7
0.6523128054740959 13
0.6533548387096775 10
0.6543968719452591 5
0.6554389051808407 7
0.6564809384164223 9
0.6575229716520039 9
0.6585650048875855 5
0.6596070381231671 10
0.6606490713587487 5
0.6616911045943304 7
0.6627331378299121 6
0.6637751710654937 2
0.6648172043010753 6
0.6658592375366569 5
0.6669012707722385 5
0.6679433040078201 2
0.6689853372434018 2
0.6700273704789834 1
0.671069403714565 1
0.6721114369501466 3
0.6731534701857282 3
0.6741955034213098 1
0.6752375366568915 0
0.6762795698924731 1
0.6773216031280548 1
0.6783636363636364 1
0.679405669599218 0
0.6804477028347996 1
0.6814897360703812 1
0.6825317693059628 0
0.6835738025415444 2
0.684615835777126 0
0.6856578690127078 2
0.6866999022482894 1
0.687741935483871 1
0.6887839687194526 1
0.6898260019550342 0
0.6908680351906158 1
0.6919100684261974 2
0.692952101661779 1
0.6939941348973607 0
0.6950361681329423 1
0.6960782013685239 0
0.6971202346041055 1
0.6981622678396872 1
0.6992043010752688 0
0.7002463343108504 0
0.7012883675464321 0
0.7023304007820137 2
0.7033724340175953 0
0.7044144672531769 0
0.7054565004887585 0
0.7064985337243401 0
0.7075405669599217 0
0.7085826001955033 0
0.709624633431085 0
0.7106666666666667 0
0.7117086999022483 0
0.7127507331378299 0
0.7137927663734115 0
0.7148347996089931 0
0.7158768328445747 0
0.7169188660801563 0
0.717960899315738 0
0.7190029325513196 0
0.7200449657869012 0
0.7210869990224829 0
0.7221290322580645 0
0.7231710654936461 0
0.7242130987292277 0
0.7252551319648093 0
0.726297165200391 1
0.7273391984359726 1
0.7283812316715542 1
0.7294232649071358 0
0.7304652981427174 0
0.731507331378299 0
0.7325493646138806 0
0.7335913978494624 0
0.7346334310850441 0
0.7356754643206257 1
0.7367174975562073 0
0.7377595307917889 0
0.7388015640273705 0
0.7398435972629521 0
0.7408856304985337 0
0.7419276637341155 1
0.7429696969696971 0
0.7440117302052787 1
0.7450537634408603 0
0.7460957966764419 1
0.7471378299120235 0
0.7481798631476051 0
0.7492218963831867 0
0.7502639296187684 0
0.75130596285435 0
0.7523479960899316 1
0.7533900293255132 0
0.7544320625610949 0
0.7554740957966765 0
0.7565161290322581 0
0.7575581622678398 0
0.7586001955034214 0
0.759642228739003 0
0.7606842619745846 0
0.7617262952101662 0
0.7627683284457478 0
0.7638103616813294 1
0.764852394916911 0
0.7658944281524926 0
0.7669364613880744 0
0.767978494623656 0
0.7690205278592376 1
0.7700625610948192 0
0.7711045943304008 0
0.7721466275659824 0
0.773188660801564 0
0.7742306940371457 0
0.7752727272727273 0
0.7763147605083089 0
0.7773567937438906 1
0.7783988269794722 0
0.7794408602150538 0
0.7804828934506354 0
0.781524926686217 0
0.7825669599217987 0
0.7836089931573803 0
0.7846510263929619 0
0.7856930596285435 1
0.7867350928641251 0
0.7877771260997067 0
0.7888191593352883 0
0.78986119257087 0
0.7909032258064517 0
0.7919452590420333 0
0.7929872922776149 1
0.7940293255131965 0
0.7950713587487781 0
0.7961133919843597 0
0.7971554252199413 1
0.7981974584555229 0
0.7992394916911046 1
0.8002815249266862 0
0.8013235581622679 0
0.8023655913978495 0
0.8034076246334311 0
0.8044496578690127 0
0.8054916911045943 0
0.806533724340176 0
0.8075757575757576 0
0.8086177908113392 1
0.8096598240469208 0
0.8107018572825024 1
0.811743890518084 1
0.8127859237536657 0
0.8138279569892473 0
0.8148699902248289 0
0.8159120234604106 0
0.8169540566959922 0
0.8179960899315738 0
0.8190381231671554 0
0.820080156402737 0
0.8211221896383186 0
0.8221642228739002 0
0.823206256109482 0
0.8242482893450636 0
0.8252903225806452 0
0.8263323558162268 0
0.8273743890518084 0
0.82841642228739 0
0.8294584555229716 0
0.8305004887585532 0
0.8315425219941349 0
0.8325845552297165 0
0.8336265884652981 0
0.8346686217008797 0
0.8357106549364614 0
0.836752688172043 0
0.8377947214076246 0
0.8388367546432062 0
0.8398787878787879 0
0.8409208211143695 0
0.8419628543499511 0
0.8430048875855327 0
0.8440469208211143 0
0.8450889540566959 0
0.8461309872922775 0
0.8471730205278591 0
0.8482150537634409 0
0.8492570869990225 0
0.8502991202346041 0
0.8513411534701857 0
0.8523831867057673 0
0.8534252199413489 0
0.8544672531769305 0
0.8555092864125122 0
0.8565513196480938 0
0.8575933528836754 0
0.858635386119257 0
0.8596774193548387 0
0.8607194525904203 0
0.8617614858260019 0
0.8628035190615835 0
0.8638455522971651 0
0.8648875855327468 0
0.8659296187683284 0
0.86697165200391 0
0.8680136852394917 0
0.8690557184750733 0
0.870097751710655 0
0.8711397849462366 0
0.8721818181818183 0
0.8732238514173999 0
0.8742658846529815 0
0.8753079178885631 0
0.8763499511241447 0
0.8773919843597263 0
0.8784340175953079 0
0.8794760508308896 0
0.8805180840664713 0
0.8815601173020529 0
0.8826021505376345 0
0.8836441837732161 0
0.8846862170087977 0
0.8857282502443793 0
0.8867702834799609 0
0.8878123167155426 0
0.8888543499511242 0
0.8898963831867058 0
0.8909384164222874 0
0.891980449657869 0
0.8930224828934507 0
0.8940645161290323 0
0.8951065493646139 0
0.8961485826001956 0
0.8971906158357772 0
0.8982326490713588 0
0.8992746823069404 0
0.900316715542522 0
0.9013587487781036 0
0.9024007820136852 0
0.9034428152492668 0
0.9044848484848486 0
0.9055268817204302 0
0.9065689149560118 0
0.9076109481915934 0
0.908652981427175 0
0.9096950146627566 0
0.9107370478983382 0
0.9117790811339199 0
0.9128211143695015 0
0.9138631476050831 0
0.9149051808406647 0
0.9159472140762464 0
0.916989247311828 0
0.9180312805474096 0
0.9190733137829912 0
0.9201153470185728 0
0.9211573802541545 0
0.9221994134897361 0
0.9232414467253177 0
0.9242834799608993 0
0.9253255131964809 0
0.9263675464320625 0
0.9274095796676441 0
0.9284516129032259 0
0.9294936461388075 0
0.9305356793743891 0
0.9315777126099707 0
0.9326197458455523 0
0.9336617790811339 0
0.9347038123167155 0
0.9357458455522971 0
0.9367878787878788 0
0.9378299120234604 0
0.938871945259042 0
0.9399139784946237 0
0.9409560117302053 0
0.9419980449657869 0
0.9430400782013685 0
0.9440821114369501 0
0.9451241446725318 0
0.9461661779081134 0
0.947208211143695 0
0.9482502443792766 0
0.9492922776148582 0
0.9503343108504398 0
0.9513763440860215 0
0.9524183773216031 0
0.9534604105571848 0
0.9545024437927664 0
0.955544477028348 0
0.9565865102639296 0
0.9576285434995112 0
0.9586705767350928 0
0.9597126099706744 0
0.9607546432062561 0
0.9617966764418378 0
0.9628387096774194 0
0.963880742913001 0
0.9649227761485826 0
0.9659648093841642 0
0.9670068426197458 0
0.9680488758553274 2
0.969090909090909 0
0.9701329423264907 0
0.9711749755620723 0
0.9722170087976539 0
0.9732590420332355 0
0.9743010752688172 0
0.9753431085043988 0
0.9763851417399804 0
0.9774271749755621 0
0.9784692082111437 0
0.9795112414467253 0
0.9805532746823069 0
0.9815953079178885 0
0.9826373411534701 0
0.9836793743890517 0
0.9847214076246333 0
0.9857634408602151 0
0.9868054740957967 0
0.9878475073313783 0
0.9888895405669599 0
0.9899315738025415 0
0.9909736070381231 0
0.9920156402737047 0
0.9930576735092864 0
0.994099706744868 0
0.9951417399804496 0
0.9961837732160312 0
0.9972258064516129 0
0.9982678396871945 0
0.9993098729227761 0
1.000351906158358 0
1.0013939393939395 0
1.002435972629521 0
1.0034780058651027 0
1.0045200391006843 0
1.005562072336266 0
1.0066041055718475 0
1.0076461388074291 0
1.0086881720430108 0
1.0097302052785924 0
1.010772238514174 0
1.0118142717497556 0
1.0128563049853372 0
1.013898338220919 0
1.0149403714565006 0
1.0159824046920822 0
1.0170244379276638 0
1.0180664711632454 0
1.019108504398827 0
1.0201505376344087 0
1.0211925708699903 0
1.0222346041055719 0
1.0232766373411535 0
1.024318670576735 0
1.0253607038123167 0
1.0264027370478983 0
1.02744477028348 0
1.0284868035190615 0
1.0295288367546434 0
1.030570869990225 0
1.0316129032258066 0
1.0326549364613882 0
1.0336969696969698 0
1.0347390029325514 0
1.035781036168133 0
1.0368230694037146 0
1.0378651026392962 0
1.0389071358748778 0
1.0399491691104594 0
1.040991202346041 0
1.0420332355816226 0
1.0430752688172042 0
1.0441173020527859 0
1.0451593352883677 0
1.0462013685239493 0
1.047243401759531 0
1.0482854349951125 0
1.0493274682306941 0
1.0503695014662757 0
1.0514115347018573 0
1.052453567937439 0
1.0534956011730205 0
1.0545376344086022 0
1.0555796676441838 0
1.0566217008797654 0
1.057663734115347 0
1.0587057673509286 0
1.0597478005865102 0
1.0607898338220918 0
1.0618318670576734 0
1.0628739002932552 0
1.0639159335288368 0
1.0649579667644185 0
1.066 0
%
% See <https://ptpb.pw/MG0m> for how it looks
%
\documentclass[border=10pt]{standalone}
\usepackage{pgfplots}
\pgfplotstableread[col sep = tab]{data.csv}\CSVdata
\tikzset{arrow/.style={thick,-stealth}}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=\textwidth,
height=\axisdefaultheight,
ybar,
bar width = 0,
xlabel = MeV,
ylabel = Pulses,
ytick distance = 100,
ytick align = outside,
ylabel style={at=(current axis.above origin), anchor=south, rotate=-90,xshift=35pt},
xlabel style={at=(current axis.right of origin), anchor=west, yshift=15pt, },
extra y ticks = {50, 150, ..., 650},
extra y tick labels = {,,}, % no labels
axis x line* = bottom,
axis y line* = left,
ymin = 0,
xmin = 0,
xmax = 0.8,
]
\addplot [black, ybar interval, fill=black] table [x index = {0}, y index = {1}]{\CSVdata};
\coordinate (insetPosA) at (axis cs:0.35,600);
\coordinate (insetPosB) at (axis cs:0.7,600);
%
% boxes showing which sub-domains are zommed unto
\draw[gray] (axis cs:0.646,0) rectangle (axis cs:0.670,15);
\draw[gray] (axis cs:0.609,0) rectangle (axis cs:0.643,75);
%
% Arrows pointing from the above boxes to the right inset.
% These must all be drawn upon the biggest axis.
\draw[arrow,gray] (axis cs:0.626,75) -- (axis cs:0.55,350);
\draw[arrow,gray] (axis cs:0.658,15) -- (axis cs:0.68,350);
%
\pgfplotsset{
after end axis/.code = {
\node[yshift=-40pt] at (axis cs:0.4,0) {Electron energy};
}
}
\end{axis}
% left inset
\begin{axis}[at={(insetPosA)},anchor={west},xshift=-30pt,footnotesize,xmin=0.609,xmax=0.643,xtick distance=0.01,xtick align=outside,ytick align=outside,axis x line*=bottom,axis y line*=left]
\addplot [black,ybar interval,fill=black] table [x index = {0}, y index = {1}]{\CSVdata};
\draw [white] (axis cs:0.609,21) -- node[below,xshift=-10pt]{{\footnotesize background noise}} (axis cs:0.643,3);
\node [xshift=5pt] at (axis cs:0.635,60) {left inset};
\end{axis}
% right inset
\begin{axis}[at={(insetPosB)},anchor={west},xshift=-30pt,footnotesize,xmin=0.646,xmax=0.670,xtick distance=0.01,xtick align=outside,ytick align=outside,axis x line*=bottom,axis y line*=left]
\addplot [black,ybar interval,fill=black] table [x index = {0}, y index = {1}]{\CSVdata};
\draw [white] (axis cs:0.646,2) -- node[below,yshift=-5pt,xshift=-3pt]{} (axis cs:0.670,2);
\node [xshift=-10pt] at (axis cs:0.665,12) {right inset};
\end{axis}
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment