import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda' ] xpoints = { 'alpha3.yoda' : [0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5], } xedges = { 'alpha3.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['alpha3.yoda'][i] - xedges['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))], [abs(xedges['alpha3.yoda'][i+1] - xpoints['alpha3.yoda'][i]) for i in range(len(xpoints['alpha3.yoda']))] ] yvals = { 'alpha3.yoda' : [816.0419, 733.5465, 330.0743, 99.09353, 22.296, 4.016139, 0.59926, 0.07404331, 0.008561911, 0.0007503974], } xerrs = { 'alpha3.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 = { 'alpha3.yoda' : [ [68.96816656980234, 61.996040196128654, 27.89644421785687, 8.375004477610743, 1.884440235189219, 0.33949506623808245, 0.050706232358557264, 0.006337351970657776, 0.0007924749207388206, 0.00011071436221195514], [68.96816656980234, 61.996040196128654, 27.89644421785687, 8.375004477610743, 1.884440235189219, 0.33949506623808245, 0.050706232358557264, 0.006337351970657776, 0.0007924749207388206, 0.00011071436221195514], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha3.yoda' : [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [0.08451547226901257, 0.08451548769727434, 0.08451565062125974, 0.08451615839712989, 0.08451920681688281, 0.08453269825523531, 0.0846147454503175, 0.0855897983309738, 0.0925581824827215, 0.14754097257260637], [0.08451547226901257, 0.08451548769727434, 0.08451565062125974, 0.08451615839712989, 0.08451920681688281, 0.08453269825523531, 0.0846147454503175, 0.0855897983309738, 0.0925581824827215, 0.14754097257260637], ], } ratio0_variation_vals = { } ratio_band_edges = { }