import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.7799999999999963, 2.7800000000000034, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], '_alpha2.yoda' : [-52.82, -47.26, -41.7, -36.14, -30.58, -25.02, -19.46, -13.899999999999999, -8.34, -2.779999999999992, 2.780000000000008, 8.34, 13.899999999999999, 19.46, 25.02, 30.58, 36.14, 41.7, 47.26, 52.82], } xedges = { 'alpha2.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 7.105427357601002e-15, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 55.6], '_alpha2.yoda' : [-55.6, -50.04, -44.48, -38.92, -33.36, -27.8, -22.24, -16.68, -11.12, -5.56, 1.5987211554602254e-14, 5.56, 11.12, 16.68, 22.24, 27.8, 33.36, 38.92, 44.48, 50.04, 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, 4.588528776978415, 22.408489208633114, 19.92492805755395, 17.740897482014393, 15.92419604316546, 14.474230215827342, 13.397980215827335, 12.696055755395683, 12.369426258992792, 12.372467625899297, 12.698543165467626, 13.412188848920863, 14.508106115107918, 15.945915467625893, 17.751532374100723, 19.920593525179846, 22.291762589928076, 4.500539568345322, 0.0], '_alpha2.yoda' : [0.0, 4.590503, 22.40971, 19.9184, 17.74516, 15.92891, 14.47479, 13.398, 12.6979, 12.37468, 12.37351, 12.70452, 13.41177, 14.49339, 15.94227, 17.7592, 19.9201, 22.29339, 4.501166, 0.0], } xerrs = { 'alpha2.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.7800000000000034, 2.7799999999999963, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.7800000000000034, 2.7799999999999963, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], '_alpha2.yoda' : [ [2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.7799999999999994, 2.7800000000000002, 2.780000000000008, 2.779999999999992, 2.7799999999999994, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001], [2.780000000000001, 2.780000000000001, 2.779999999999994, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.7799999999999994, 2.780000000000008, 2.779999999999992, 2.7800000000000002, 2.7799999999999994, 2.780000000000001, 2.780000000000001, 2.7799999999999976, 2.780000000000001, 2.780000000000001, 2.780000000000001, 2.780000000000001], ], } yerrs = { 'alpha2.yoda' : [ [0.0, 0.38781491241785687, 1.8938729358016235, 1.6839740862468677, 1.4993906513810848, 1.3458497413599009, 1.2233060132652787, 1.1323484475077263, 1.0730248084420582, 1.0454185232346485, 1.045674234565489, 1.0732338558642385, 1.133546215383761, 1.226168586582786, 1.347686965634732, 1.5002892730403905, 1.6836089709987194, 1.8840054686135477, 0.380376506821425, 0.0], [0.0, 0.38781491241785687, 1.8938729358016235, 1.6839740862468677, 1.4993906513810848, 1.3458497413599009, 1.2233060132652787, 1.1323484475077263, 1.0730248084420582, 1.0454185232346485, 1.045674234565489, 1.0732338558642385, 1.133546215383761, 1.226168586582786, 1.347686965634732, 1.5002892730403905, 1.6836089709987194, 1.8840054686135477, 0.380376506821425, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.001565488, 0.003458899, 0.00326097, 0.003077936, 0.002916169, 0.002779879, 0.002674482, 0.002603669, 0.002570317, 0.002570195, 0.002604347, 0.002675856, 0.002781664, 0.002917392, 0.003079154, 0.00326111, 0.00344991, 0.00155018, 0.0], [0.0, 0.001565488, 0.003458899, 0.00326097, 0.003077936, 0.002916169, 0.002779879, 0.002674482, 0.002603669, 0.002570317, 0.002570195, 0.002604347, 0.002675856, 0.002781664, 0.002917392, 0.003079154, 0.00326111, 0.00344991, 0.00155018, 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.0004302518557777, 1.0000544789680161, 0.9996723673212222, 1.0002402650705764, 1.0002960247928223, 1.0000386745384253, 1.000001476653372, 1.0001452612244188, 1.0004247360303706, 1.0000842494910651, 1.0004706708836197, 0.9999687710242093, 0.998985662567453, 0.9997713854915828, 1.0004319416339778, 0.9999752253777368, 1.00007300499749, 1.000139190344883, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.08451835681266802, 0.08451586888204798, 0.08451594311320179, 0.0845160541004849, 0.08451602440159163, 0.08451613626592817, 0.08451635464949095, 0.08451639068976477, 0.08451633093932798, 0.08451622313212429, 0.08451629780515192, 0.08451612396398411, 0.08451610271211925, 0.08451612379175506, 0.08451604297718517, 0.08451600444889452, 0.0845157694916769, 0.0845179785767943, 1.0], [1.0, 0.08451835681266802, 0.08451586888204798, 0.08451594311320179, 0.0845160541004849, 0.08451602440159163, 0.08451613626592817, 0.08451635464949095, 0.08451639068976477, 0.08451633093932798, 0.08451622313212429, 0.08451629780515192, 0.08451612396398411, 0.08451610271211925, 0.08451612379175506, 0.08451604297718517, 0.08451600444889452, 0.0845157694916769, 0.0845179785767943, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.0003411742796197275, 0.00015435663546061024, 0.0001636628243063442, 0.00017349381580725504, 0.00018312817752903744, 0.0001920571221093503, 0.00019961829745356502, 0.00020507699794036186, 0.00020779597583447606, 0.00020773503537966902, 0.0002050902190955457, 0.00019950926952652458, 0.00019173171039211888, 0.00018295544121772243, 0.0001734584899550672, 0.00016370546368901716, 0.0001547616518022109, 0.0003444431443072375, 1.0], [1.0, 0.0003411742796197275, 0.00015435663546061024, 0.0001636628243063442, 0.00017349381580725504, 0.00018312817752903744, 0.0001920571221093503, 0.00019961829745356502, 0.00020507699794036186, 0.00020779597583447606, 0.00020773503537966902, 0.0002050902190955457, 0.00019950926952652458, 0.00019173171039211888, 0.00018295544121772243, 0.0001734584899550672, 0.00016370546368901716, 0.0001547616518022109, 0.0003444431443072375, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }