import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda' ] xpoints = { 'alpha0.yoda' : [0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], } xedges = { 'alpha0.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['alpha0.yoda'][i] - xedges['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))], [abs(xedges['alpha0.yoda'][i+1] - xpoints['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))] ] yvals = { 'alpha0.yoda' : [784.4884, 427.071, 167.9499, 48.50941, 10.77128, 1.922636, 0.2875081, 0.03669723, 0.004073592, 0.0004605458], } xerrs = { 'alpha0.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 = { 'alpha0.yoda' : [ [66.30141024141192, 36.094113093411785, 14.194368601667353, 4.099799995121713, 0.9103433967465244, 0.16249787690920764, 0.024304182767581384, 0.0031056550033769044, 0.00034828924760893786, 4.4156211341101265e-05], [66.30141024141192, 36.094113093411785, 14.194368601667353, 4.099799995121713, 0.9103433967465244, 0.16249787690920764, 0.024304182767581384, 0.0031056550033769044, 0.00034828924760893786, 4.4156211341101265e-05], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha0.yoda' : [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [0.0845154756162257, 0.08451548593421652, 0.08451549302302265, 0.08451556090089969, 0.08451580469048472, 0.08451827434272927, 0.08453390623631607, 0.08462913967558054, 0.08549929585705635, 0.09587800245079049], [0.0845154756162257, 0.08451548593421652, 0.08451549302302265, 0.08451556090089969, 0.08451580469048472, 0.08451827434272927, 0.08453390623631607, 0.08462913967558054, 0.08549929585705635, 0.09587800245079049], ], } ratio0_variation_vals = { } ratio_band_edges = { }