import numpy as np from numpy import nan add_legend_handle = [ '_alpha2.yoda' ] xpoints = { '_alpha2.yoda' : [0.5], } xedges = { '_alpha2.yoda' : [0.0, 1.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' : [1000000.0], } xerrs = { '_alpha2.yoda' : [ [0.5], [0.5], ], } yerrs = { '_alpha2.yoda' : [ [44.72136], [44.72136], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { '_alpha2.yoda' : [1.0], } ratio0_yerrs = { '_alpha2.yoda' : [ [4.472136e-05], [4.472136e-05], ], } ratio0_variation_vals = { } ratio_band_edges = { }