import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.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], '_alpha2.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 = { 'alpha2.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], '_alpha2.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['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' : [0.0, 0.0, 0.0, 0.3936539634146341, 0.5512140243902438, 0.6299000000000001, 0.7096768292682925, 0.8125323170731714, 0.9480521341463412, 1.1344996951219508, 1.3895435975609767, 1.7692051829268287, 2.3399999999999994, 3.2951768292682915, 5.172411585365851, 10.502786585365874, 423.38871951219494, 0.0, 0.0, 0.0], '_alpha2.yoda' : [0.0, 0.0, 0.0, 0.3917724, 0.5521596, 0.628568, 0.7111741, 0.8123089, 0.9488222, 1.13234, 1.391831, 1.766601, 2.342355, 3.296665, 5.171379, 10.49777, 423.4043, 0.0, 0.0, 0.0], } xerrs = { 'alpha2.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], ], '_alpha2.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 = { 'alpha2.yoda' : [ [0.0, 0.0, 0.0, 0.03329300399648631, 0.04660476586539442, 0.0532580851304927, 0.05999836559592296, 0.06869242086154165, 0.08014278996369405, 0.09590063935859482, 0.11745831908464038, 0.14954179719287175, 0.19778381553074867, 0.2785143993983415, 0.437167375892705, 0.8876653058005332, 35.78289121061681, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.03329300399648631, 0.04660476586539442, 0.0532580851304927, 0.05999836559592296, 0.06869242086154165, 0.08014278996369405, 0.09590063935859482, 0.11745831908464038, 0.14954179719287175, 0.19778381553074867, 0.2785143993983415, 0.437167375892705, 0.8876653058005332, 35.78289121061681, 0.0, 0.0, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.0, 0.0, 0.0005958049, 0.0007073258, 0.0007546808, 0.0008027404, 0.0008579219, 0.0009272131, 0.001012921, 0.001123002, 0.001265192, 0.001456845, 0.001728322, 0.002164663, 0.003084151, 0.01958686, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0005958049, 0.0007073258, 0.0007546808, 0.0008027404, 0.0008579219, 0.0009272131, 0.001012921, 0.001123002, 0.001265192, 0.001456845, 0.001728322, 0.002164663, 0.003084151, 0.01958686, 0.0, 0.0, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha2.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], '_alpha2.yoda' : [1.0, 1.0, 1.0, 0.9952202604584163, 1.0017154418572753, 0.9978853786315286, 1.002109792330759, 0.9997250360773634, 1.0008122610834607, 0.9980963457890407, 1.0016461537752672, 0.9985280492325257, 1.0010064102564105, 1.000451620901947, 0.9998003667440595, 0.9995223567264649, 1.0000367994872963, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 1.0, 1.0, 0.08457428881877896, 0.0845493107998275, 0.08455006370930733, 0.08454322181799831, 0.08454115537087696, 0.08453415912180545, 0.08453121650974632, 0.08453014305618865, 0.08452484688377523, 0.08452299809006356, 0.08452183716653132, 0.08451906208113243, 0.08451712301165554, 0.08451545721823642, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08457428881877896, 0.0845493107998275, 0.08455006370930733, 0.08454322181799831, 0.08454115537087696, 0.08453415912180545, 0.08453121650974632, 0.08453014305618865, 0.08452484688377523, 0.08452299809006356, 0.08452183716653132, 0.08451906208113243, 0.08451712301165554, 0.08451545721823642, 1.0, 1.0, 1.0], ], '_alpha2.yoda' : [ [1.0, 1.0, 1.0, 0.0015135244538931293, 0.001283214447931451, 0.0011980962057469438, 0.0011311351405225672, 0.0010558618801653659, 0.0009780191052835873, 0.0008928349688900692, 0.0008081804716103697, 0.0007151188636622518, 0.0006225833333333335, 0.0005245005320044635, 0.0004185016919621045, 0.0002936507349675487, 4.626212059349833e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0015135244538931293, 0.001283214447931451, 0.0011980962057469438, 0.0011311351405225672, 0.0010558618801653659, 0.0009780191052835873, 0.0008928349688900692, 0.0008081804716103697, 0.0007151188636622518, 0.0006225833333333335, 0.0005245005320044635, 0.0004185016919621045, 0.0002936507349675487, 4.626212059349833e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }