import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.7799999999999963, 2.7800000000000034, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], '_alpha1.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.779999999999992, 2.780000000000008, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], } xedges = { 'alpha1.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 7.105427357601002e-15, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 55.6], '_alpha1.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 1.5987211554602254e-14, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 55.6], } ref_xerrs = [ [abs(xpoints['alpha1.yoda'][i] - xedges['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))], [abs(xedges['alpha1.yoda'][i+1] - xpoints['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))] ] yvals = { 'alpha1.yoda' : [0.0, 4.581582733812948, 22.373093525179875, 19.893255395683443, 17.711737410071947, 15.897919064748196, 14.44859712230216, 13.372593525179854, 12.668307553956835, 12.32542625899279, 12.329618705035987, 12.671573741007196, 13.386672661870502, 14.482732014388493, 15.919140287769777, 17.72302338129497, 19.88904676258992, 22.2578057553957, 4.49346942446043, 0.0], '_alpha1.yoda' : [0.0, 4.583289, 22.37443, 19.88664, 17.7164, 15.90201, 14.44934, 13.37225, 12.67033, 12.33076, 12.32998, 12.67685, 13.38635, 14.46825, 15.91584, 17.73107, 19.88906, 22.2592, 4.494199, 0.0], } xerrs = { 'alpha1.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.7800000000000034, 2.7799999999999963, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.7800000000000034, 2.7799999999999963, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], '_alpha1.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.780000000000008, 2.779999999999992, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.780000000000008, 2.779999999999992, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], } yerrs = { 'alpha1.yoda' : [ [0.0, 0.3872275426199299, 1.8908806372666804, 1.6812970419543676, 1.4969261415642674, 1.3436288278762276, 1.221139712779169, 1.1302028618245274, 1.0706795406875256, 1.0416996958343758, 1.0420527121374135, 1.0709542908115213, 1.1313894631758015, 1.22402400201864, 1.3454240046506725, 1.4978794769221964, 1.6809436614845965, 1.8811359067250888, 0.37977899567324386, 0.0], [0.0, 0.3872275426199299, 1.8908806372666804, 1.6812970419543676, 1.4969261415642674, 1.3436288278762276, 1.221139712779169, 1.1302028618245274, 1.0706795406875256, 1.0416996958343758, 1.0420527121374135, 1.0709542908115213, 1.1313894631758015, 1.22402400201864, 1.3454240046506725, 1.4978794769221964, 1.6809436614845965, 1.8811359067250888, 0.37977899567324386, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.001562789, 0.003452929, 0.00325531, 0.003072553, 0.002910969, 0.002774825, 0.002669401, 0.002598398, 0.002563343, 0.002563261, 0.002599066, 0.002670808, 0.002776641, 0.002912235, 0.003073825, 0.003255508, 0.003444026, 0.001547525, 0.0], [0.0, 0.001562789, 0.003452929, 0.00325531, 0.003072553, 0.002910969, 0.002774825, 0.002669401, 0.002598398, 0.002563343, 0.002563261, 0.002599066, 0.002670808, 0.002776641, 0.002912235, 0.003073825, 0.003255508, 0.003444026, 0.001547525, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha1.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], '_alpha1.yoda' : [1.0, 1.0003724185038632, 1.0000597358080419, 0.9996674553484656, 1.0002632485916034, 1.0002573252030749, 1.0000514152129476, 0.9999743112523979, 1.0001596461117281, 1.000432742924677, 1.0000293030119307, 1.0004163854546124, 0.9999758967834165, 0.9990000495504505, 0.9997926842963805, 1.0004540206561778, 1.0000006655628215, 1.000062640703204, 1.0001623635259649, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.08451829097445242, 0.08451583305359996, 0.08451593308952267, 0.084516053219772, 0.08451601888297254, 0.08451614384723043, 0.08451635501343983, 0.08451638359167465, 0.08451632210888757, 0.08451621555107709, 0.084516281300226, 0.08451610730710987, 0.0845160982611969, 0.08451612212277089, 0.08451602442183037, 0.08451604953970689, 0.08451578414323555, 0.08451798817321368, 1.0], [1.0, 0.08451829097445242, 0.08451583305359996, 0.08451593308952267, 0.084516053219772, 0.08451601888297254, 0.08451614384723043, 0.08451635501343983, 0.08451638359167465, 0.08451632210888757, 0.08451621555107709, 0.084516281300226, 0.08451610730710987, 0.0845160982611969, 0.08451612212277089, 0.08451602442183037, 0.08451604953970689, 0.08451578414323555, 0.08451798817321368, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.0003411024291815842, 0.0001543339992797102, 0.0001636388783660997, 0.00017347552805591865, 0.00018310377528935458, 0.00019204805674295626, 0.00019961729899092988, 0.0002051101134806609, 0.00020797195538205032, 0.00020789458792858253, 0.00020510996132935057, 0.00019951246044936245, 0.00019172080221062065, 0.0001829392132587328, 0.00017343683037986292, 0.00016368346049260696, 0.00015473340174896195, 0.00034439424280400545, 1.0], [1.0, 0.0003411024291815842, 0.0001543339992797102, 0.0001636388783660997, 0.00017347552805591865, 0.00018310377528935458, 0.00019204805674295626, 0.00019961729899092988, 0.0002051101134806609, 0.00020797195538205032, 0.00020789458792858253, 0.00020510996132935057, 0.00019951246044936245, 0.00019172080221062065, 0.0001829392132587328, 0.00017343683037986292, 0.00016368346049260696, 0.00015473340174896195, 0.00034439424280400545, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }