import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], '_alpha3.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], } xedges = { 'alpha3.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 55.6], '_alpha3.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 55.6], } ref_xerrs = [ [abs(xpoints['alpha3.yoda'][i] - xedges['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))], [abs(xedges['alpha3.yoda'][i+1] - xpoints['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))] ] yvals = { 'alpha3.yoda' : [0.0, 0.0, 0.0, 0.28849125, 0.4863951219512194, 0.6008664634146342, 0.7236307926829265, 0.8720658536585373, 1.057093902439024, 1.3028347560975604, 1.6430527439024403, 2.127487499999999, 2.8557466463414625, 4.062097560975608, 6.367954268292681, 12.327088414634169, 576.7948170731705, 0.0, 0.0, 0.0], '_alpha3.yoda' : [0.0, 0.0, 0.0, 0.2888138, 0.4869778, 0.6038503, 0.7245094, 0.8696849, 1.056507, 1.303373, 1.638845, 2.120565, 2.853975, 4.058204, 6.364535, 12.32683, 576.811, 0.0, 0.0, 0.0], } xerrs = { 'alpha3.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], '_alpha3.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], } yerrs = { 'alpha3.yoda' : [ [0.0, 0.0, 0.0, 0.02439992947932583, 0.0411290318817938, 0.05080630545223819, 0.061179286354305626, 0.07372728504080703, 0.08936077027159964, 0.11012940410455124, 0.13888495227086844, 0.17982463551739755, 0.2413763816726633, 0.34333546066272114, 0.538212955626123, 1.0418468513603496, 48.74805514813649, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.02439992947932583, 0.0411290318817938, 0.05080630545223819, 0.061179286354305626, 0.07372728504080703, 0.08936077027159964, 0.11012940410455124, 0.13888495227086844, 0.17982463551739755, 0.2413763816726633, 0.34333546066272114, 0.538212955626123, 1.0418468513603496, 48.74805514813649, 0.0, 0.0, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.0, 0.0, 0.0005943263, 0.0007717391, 0.0008593708, 0.0009413214, 0.001031328, 0.001136716, 0.001262555, 0.001415745, 0.00161043, 0.001868276, 0.002227834, 0.002789968, 0.00388277, 0.02656028, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0005943263, 0.0007717391, 0.0008593708, 0.0009413214, 0.001031328, 0.001136716, 0.001262555, 0.001415745, 0.00161043, 0.001868276, 0.002227834, 0.002789968, 0.00388277, 0.02656028, 0.0, 0.0, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha3.yoda' : [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], '_alpha3.yoda' : [1.0, 1.0, 1.0, 1.0011180581733417, 1.0011979520815157, 1.0049658897060239, 1.0012141651874928, 0.9972697547455291, 0.9994447963064873, 1.0004131329010992, 0.9974390694893663, 0.9967461618458398, 0.99937962061735, 0.9990414900387885, 0.9994630507461861, 0.999979036847512, 1.0000280566439754, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.08457771069079506, 0.08455889055137077, 0.08455506929695086, 0.08454489081024026, 0.08454325408052887, 0.08453437302534644, 0.08453060036134345, 0.08452860249695979, 0.08452441460520808, 0.08452303777784138, 0.08452171704617087, 0.08451897311919986, 0.08451686370023237, 0.08451541814383615, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08457771069079506, 0.08455889055137077, 0.08455506929695086, 0.08454489081024026, 0.08454325408052887, 0.08453437302534644, 0.08453060036134345, 0.08452860249695979, 0.08452441460520808, 0.08452303777784138, 0.08452171704617087, 0.08451897311919986, 0.08451686370023237, 0.08451541814383615, 1.0, 1.0, 1.0], ], '_alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.0020601189810782825, 0.0015866505751622193, 0.0014302192788665958, 0.001300831044668464, 0.001182626284096915, 0.0010753216884301997, 0.000969082989297728, 0.0008616552361170353, 0.0007569633194084574, 0.0006542162983517725, 0.000548444237628043, 0.00043812626197581365, 0.000314978676991604, 4.60480559356875e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0020601189810782825, 0.0015866505751622193, 0.0014302192788665958, 0.001300831044668464, 0.001182626284096915, 0.0010753216884301997, 0.000969082989297728, 0.0008616552361170353, 0.0007569633194084574, 0.0006542162983517725, 0.000548444237628043, 0.00043812626197581365, 0.000314978676991604, 4.60480559356875e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }