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' : [816.0202, 733.5269, 330.0652, 99.09072, 22.29537, 4.01602, 0.5992385, 0.07404066, 0.008561605, 0.0007503705], } 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.96633236587255, 61.99437877743433, 27.895673499666575, 8.374767459458203, 1.884386372270825, 0.3394850512172811, 0.05070441795346831, 0.006337125531343055, 0.0007924465281645191, 0.00011071038794982158], [68.96633236587255, 61.99437877743433, 27.895673499666575, 8.374767459458203, 1.884386372270825, 0.3394850512172811, 0.05070441795346831, 0.006337125531343055, 0.0007924465281645191, 0.00011071038794982158], ], } 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.08451547200163984, 0.08451548099658558, 0.08451564569565824, 0.08451616316299047, 0.08451917919598666, 0.08453270930355952, 0.08461475348040606, 0.08558980337753683, 0.09255817433349461, 0.14754096536287284], [0.08451547200163984, 0.08451548099658558, 0.08451564569565824, 0.08451616316299047, 0.08451917919598666, 0.08453270930355952, 0.08461475348040606, 0.08558980337753683, 0.09255817433349461, 0.14754096536287284], ], } ratio0_variation_vals = { } ratio_band_edges = { }