import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda' ] xpoints = { 'alpha3.yoda' : [0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], } xedges = { 'alpha3.yoda' : [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0], } 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' : [809.7931, 440.7766, 173.3228, 50.09199, 11.12419, 1.994337, 0.2949657, 0.03799375, 0.004018933, 0.0004668777], } xerrs = { 'alpha3.yoda' : [ [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5], [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5], ], } yerrs = { 'alpha3.yoda' : [ [52.27194276091142, 28.452040348628778, 11.187975688210981, 3.2334718183401567, 0.7181084179982853, 0.1287758129463759, 0.01909002619170545, 0.0024962427766545463, 0.00031004872197769177, 6.051531211189446e-05], [52.27194276091142, 28.452040348628778, 11.187975688210981, 3.2334718183401567, 0.7181084179982853, 0.1287758129463759, 0.01909002619170545, 0.0024962427766545463, 0.00031004872197769177, 6.051531211189446e-05], ], } 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], } ratio0_yerrs = { 'alpha3.yoda' : [ [0.06454975074609974, 0.06454979767217402, 0.06454993623580384, 0.06455067603303755, 0.0645537713755595, 0.06457073851930537, 0.06471947820273832, 0.06570140553787258, 0.07714702434145873, 0.1296170541276537], [0.06454975074609974, 0.06454979767217402, 0.06454993623580384, 0.06455067603303755, 0.0645537713755595, 0.06457073851930537, 0.06471947820273832, 0.06570140553787258, 0.07714702434145873, 0.1296170541276537], ], } ratio0_variation_vals = { } ratio_band_edges = { }