import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.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], '_alpha1.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 = { 'alpha1.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], '_alpha1.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['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' : [0.0, 0.0, 0.0, 0.12226749999999999, 0.15932, 0.15926515243902442, 0.15639734756097556, 0.15044237804878058, 0.15256499999999995, 0.15474570121951214, 0.1640814024390245, 0.18113344512195115, 0.20865990853658528, 0.2651645121951218, 0.4116679878048779, 1.2403527439024413, 448.0978658536584, 0.0, 0.0, 0.0], '_alpha1.yoda' : [0.0, 0.0, 0.0, 0.122787, 0.158996, 0.159295, 0.1559556, 0.1526812, 0.1520109, 0.1552727, 0.1652693, 0.180627, 0.2094788, 0.264654, 0.4107593, 1.239744, 448.1144, 0.0, 0.0, 0.0], } xerrs = { 'alpha1.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], ], '_alpha1.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 = { 'alpha1.yoda' : [ [0.0, 0.0, 0.0, 0.01035334162375164, 0.013486824188093624, 0.013476016713863854, 0.013237571758740975, 0.012732128561623026, 0.012910597264002382, 0.013098101739756368, 0.013892607242360308, 0.015322265048501727, 0.01765501634582439, 0.02242736474645545, 0.0348100778928033, 0.10484848739652718, 37.87118005819985, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.01035334162375164, 0.013486824188093624, 0.013476016713863854, 0.013237571758740975, 0.012732128561623026, 0.012910597264002382, 0.013098101739756368, 0.013892607242360308, 0.015322265048501727, 0.01765501634582439, 0.02242736474645545, 0.0348100778928033, 0.10484848739652718, 37.87118005819985, 0.0, 0.0, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.0, 0.0, 0.0003330338, 0.0003789704, 0.0003793265, 0.0003753294, 0.0003713683, 0.0003705523, 0.0003745068, 0.0003863743, 0.0004039275, 0.0004349928, 0.0004889353, 0.0006091242, 0.001058225, 0.02011901, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0003330338, 0.0003789704, 0.0003793265, 0.0003753294, 0.0003713683, 0.0003705523, 0.0003745068, 0.0003863743, 0.0004039275, 0.0004349928, 0.0004889353, 0.0006091242, 0.001058225, 0.02011901, 0.0, 0.0, 0.0], ], } 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, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], '_alpha1.yoda' : [1.0, 1.0, 1.0, 1.0042488805283498, 0.9979663570173237, 1.0001874079829673, 0.9971754792017599, 1.0148815910799647, 0.9963681053976997, 1.003405579452836, 1.0072396843476332, 0.9972040220313252, 1.0039245270888784, 0.9980747340928255, 0.9977926682865887, 0.9995092171114758, 1.0000368985161536, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 1.0, 1.0, 0.08467778946777876, 0.08465242397748948, 0.0846137181140314, 0.08464064106701019, 0.08463126365560816, 0.08462358512111157, 0.08464275024464982, 0.08466899377900577, 0.084591031977478, 0.08461144486090319, 0.08457905833927064, 0.08455862229759423, 0.08453118511001087, 0.08451542161677683, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08467778946777876, 0.08465242397748948, 0.0846137181140314, 0.08464064106701019, 0.08463126365560816, 0.08462358512111157, 0.08464275024464982, 0.08466899377900577, 0.084591031977478, 0.08461144486090319, 0.08457905833927064, 0.08455862229759423, 0.08453118511001087, 0.08451542161677683, 1.0, 1.0, 1.0], ], '_alpha1.yoda' : [ [1.0, 1.0, 1.0, 0.002723812951111293, 0.002378674366055737, 0.0023817294253696037, 0.0023998450475873198, 0.0024685085732929902, 0.002428815914528235, 0.00242014348087608, 0.002354772047633999, 0.0022299995438614276, 0.0020846975494754937, 0.001843894177061733, 0.001479649178572302, 0.000853164557584301, 4.4898696318653185e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.002723812951111293, 0.002378674366055737, 0.0023817294253696037, 0.0023998450475873198, 0.0024685085732929902, 0.002428815914528235, 0.00242014348087608, 0.002354772047633999, 0.0022299995438614276, 0.0020846975494754937, 0.001843894177061733, 0.001479649178572302, 0.000853164557584301, 4.4898696318653185e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }