import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda' ] xpoints = { 'alpha1.yoda' : [0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], } xedges = { 'alpha1.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['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' : [816.1714, 733.6617, 330.1231, 99.10959, 22.29929, 4.01662, 0.599312, 0.07403245, 0.008566348, 0.0007507863], } xerrs = { 'alpha1.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 = { 'alpha1.yoda' : [ [68.97911278060917, 62.005781988456526, 27.900573470808805, 8.37636197880679, 1.8847180160437795, 0.33953600692710045, 0.05071012719368785, 0.006336095011913884, 0.0007928856159623531, 0.00011077174730047369], [68.97911278060917, 62.005781988456526, 27.900573470808805, 8.37636197880679, 1.8847180160437795, 0.33953600692710045, 0.05071012719368785, 0.006336095011913884, 0.0007928856159623531, 0.00011077174730047369], ], } 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], } ratio0_yerrs = { 'alpha1.yoda' : [ [0.08451547405435816, 0.0845154953413222, 0.08451566543149754, 0.08451616012947677, 0.0845191939314561, 0.08453276808040106, 0.08461390259779189, 0.08558537522280951, 0.09255818418331278, 0.14754098110271016], [0.08451547405435816, 0.0845154953413222, 0.08451566543149754, 0.08451616012947677, 0.0845191939314561, 0.08453276808040106, 0.08461390259779189, 0.08558537522280951, 0.09255818418331278, 0.14754098110271016], ], } ratio0_variation_vals = { } ratio_band_edges = { }