import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda' ] xpoints = { 'alpha2.yoda' : [0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], } xedges = { 'alpha2.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['alpha2.yoda'][i] - xedges['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))], [abs(xedges['alpha2.yoda'][i+1] - xpoints['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))] ] yvals = { 'alpha2.yoda' : [808.9454, 440.3821, 173.1873, 50.01981, 11.1069, 1.982431, 0.2964698, 0.03788526, 0.004202481, 0.0004743826], } xerrs = { 'alpha2.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 = { 'alpha2.yoda' : [ [68.36839181961209, 37.21909456179717, 14.637004474960031, 4.227451951234928, 0.9387086342417438, 0.16755178304034846, 0.02506223254221379, 0.0032063078454820895, 0.00035950869252356055, 4.580879828155286e-05], [68.36839181961209, 37.21909456179717, 14.637004474960031, 4.227451951234928, 0.9387086342417438, 0.16755178304034846, 0.02506223254221379, 0.0032063078454820895, 0.00035950869252356055, 4.580879828155286e-05], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha2.yoda' : [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [0.08451545904039023, 0.08451545728538279, 0.08451546086208418, 0.08451555396221871, 0.08451580857320619, 0.08451834290340922, 0.08453553293527297, 0.08463206654730863, 0.0855467740421814, 0.09656508961659399], [0.08451545904039023, 0.08451545728538279, 0.08451546086208418, 0.08451555396221871, 0.08451580857320619, 0.08451834290340922, 0.08453553293527297, 0.08463206654730863, 0.0855467740421814, 0.09656508961659399], ], } ratio0_variation_vals = { } ratio_band_edges = { }