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' : [826.7888, 743.1787, 334.4045, 100.3985, 22.59013, 4.0698, 0.6071055, 0.07505651, 0.008623949, 0.0007549154], } 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' : [ [69.87644810664034, 62.81011065107273, 28.26241320198967, 8.485297284126231, 1.9092996098046005, 0.3440340099466912, 0.05136791800336081, 0.006425243186059186, 0.0007994681982418062, 0.00011227720160388751], [69.87644810664034, 62.81011065107273, 28.26241320198967, 8.485297284126231, 1.9092996098046005, 0.3440340099466912, 0.05136791800336081, 0.006425243186059186, 0.0007994681982418062, 0.00011227720160388751], ], } 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.08451547493947709, 0.08451548820098413, 0.0845156485692916, 0.084516175880379, 0.08451919532134612, 0.08453339474831471, 0.08461118867043836, 0.08560540832579593, 0.09270326137617536, 0.1487281907401644], [0.08451547493947709, 0.08451548820098413, 0.0845156485692916, 0.084516175880379, 0.08451919532134612, 0.08453339474831471, 0.08461118867043836, 0.08560540832579593, 0.09270326137617536, 0.1487281907401644], ], } ratio0_variation_vals = { } ratio_band_edges = { }