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' : [807.567, 439.6326, 172.8925, 49.9348, 11.08814, 1.979074, 0.2959475, 0.0378147, 0.004194039, 0.0004760106], } 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.25190107242435, 37.155753255720704, 14.612090883922123, 4.2202665792577605, 0.937123310989541, 0.16726807824567125, 0.025018107442410585, 0.003200320296470339, 0.00035878726287314047, 4.5839153569846814e-05], [68.25190107242435, 37.155753255720704, 14.612090883922123, 4.2202665792577605, 0.937123310989541, 0.16726807824567125, 0.025018107442410585, 0.003200320296470339, 0.00035878726287314047, 4.5839153569846814e-05], ], } 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.08451546567953414, 0.08451546417558821, 0.08451546992450293, 0.08451553984911846, 0.08451582600774711, 0.08451835466772402, 0.08453562690142875, 0.08463164580098055, 0.0855469543495281, 0.09629859832921119], [0.08451546567953414, 0.08451546417558821, 0.08451546992450293, 0.08451553984911846, 0.08451582600774711, 0.08451835466772402, 0.08453562690142875, 0.08463164580098055, 0.0855469543495281, 0.09629859832921119], ], } ratio0_variation_vals = { } ratio_band_edges = { }