import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], '_alpha3.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], } xedges = { 'alpha3.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 55.6], '_alpha3.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 55.6], } 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' : [0.0, 0.0, 0.0, 0.39748567073170726, 0.5596975609756097, 0.6382612804878051, 0.7177408536585363, 0.8195445121951225, 0.9552609756097558, 1.141094207317073, 1.395688719512196, 1.7755335365853653, 2.3467070121951212, 3.3006951219512186, 5.178771341463413, 10.506798780487824, 423.3451219512193, 0.0, 0.0, 0.0], '_alpha3.yoda' : [0.0, 0.0, 0.0, 0.3953001, 0.5606377, 0.6370221, 0.7189778, 0.8194874, 0.9554521, 1.138754, 1.398185, 1.772846, 2.348381, 3.302785, 5.177322, 10.50259, 423.3612, 0.0, 0.0, 0.0], } xerrs = { 'alpha3.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], '_alpha3.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], } yerrs = { 'alpha3.yoda' : [ [0.0, 0.0, 0.0, 0.03361683856666377, 0.04732172861810011, 0.05396516291780092, 0.060679402493531834, 0.0692846350096727, 0.08075250957031382, 0.09645871222851185, 0.11797748426532613, 0.15007613822168264, 0.19835045790044414, 0.27898082379370853, 0.43770486832443123, 0.8880043560240406, 35.779202389333584, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.03361683856666377, 0.04732172861810011, 0.05396516291780092, 0.060679402493531834, 0.0692846350096727, 0.08075250957031382, 0.09645871222851185, 0.11797748426532613, 0.15007613822168264, 0.19835045790044414, 0.27898082379370853, 0.43770486832443123, 0.8880043560240406, 35.779202389333584, 0.0, 0.0, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.0, 0.0, 0.0005985083, 0.0007127674, 0.0007597732, 0.0008071689, 0.0008617432, 0.0009304888, 0.001015831, 0.001125613, 0.001267483, 0.001458784, 0.001730003, 0.002166004, 0.003084998, 0.01958674, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0005985083, 0.0007127674, 0.0007597732, 0.0008071689, 0.0008617432, 0.0009304888, 0.001015831, 0.001125613, 0.001267483, 0.001458784, 0.001730003, 0.002166004, 0.003084998, 0.01958674, 0.0, 0.0, 0.0], ], } 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, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], '_alpha3.yoda' : [1.0, 1.0, 1.0, 0.9945015106389018, 1.0016797268559676, 0.9980585059352841, 1.0017233885115477, 0.9999303122719112, 1.0002000755763338, 0.9979491550285098, 1.0017885653533665, 0.9984863498604853, 1.0007133348117934, 1.0006331630070535, 0.9997201379694428, 0.9995994231377459, 1.0000379785851945, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.08457371181401475, 0.0845487490344134, 0.08455026893775676, 0.084542216294685, 0.084540417242373, 0.08453450065702561, 0.08453176925269336, 0.08452994039140774, 0.0845245303055796, 0.0845228896788893, 0.08452183963867221, 0.08451905663800652, 0.08451711835132443, 0.08451544740713064, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08457371181401475, 0.0845487490344134, 0.08455026893775676, 0.084542216294685, 0.084540417242373, 0.08453450065702561, 0.08453176925269336, 0.08452994039140774, 0.0845245303055796, 0.0845228896788893, 0.08452183963867221, 0.08451905663800652, 0.08451711835132443, 0.08451544740713064, 1.0, 1.0, 1.0], ], '_alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.0015057355373295403, 0.001273486700134219, 0.001190379587837957, 0.00112459656697208, 0.001051490415928538, 0.0009740676357118604, 0.0008902253586830571, 0.0008064928692648676, 0.0007138603545825287, 0.0006216302215909971, 0.0005241329283927629, 0.0004182466954387548, 0.0002936192140396892, 4.6266601371769e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0015057355373295403, 0.001273486700134219, 0.001190379587837957, 0.00112459656697208, 0.001051490415928538, 0.0009740676357118604, 0.0008902253586830571, 0.0008064928692648676, 0.0007138603545825287, 0.0006216302215909971, 0.0005241329283927629, 0.0004182466954387548, 0.0002936192140396892, 4.6266601371769e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }