import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.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], '_alpha3.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 = { 'alpha3.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], '_alpha3.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['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, 2.295526978417265, 13.090741007194255, 14.397586330935246, 15.507039568345327, 16.41356294964028, 17.160133093525186, 17.721530575539568, 18.133812949640287, 18.778327338129472, 18.7769604316547, 18.12338129496403, 17.724667266187048, 17.154602517985616, 16.41469604316546, 15.501365107913673, 14.390449640287764, 13.07771223021584, 2.2943255395683444, 0.0], '_alpha3.yoda' : [0.0, 2.295062, 13.08902, 14.40142, 15.49865, 16.41366, 17.15613, 17.71716, 18.13308, 18.77959, 18.7833, 18.13035, 17.7212, 17.1531, 16.42139, 15.49629, 14.39964, 13.08325, 2.294997, 0.0], } xerrs = { 'alpha3.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], ], '_alpha3.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 = { 'alpha3.yoda' : [ [0.0, 0.19401756982488888, 1.1063800349518593, 1.2168294367591765, 1.3105927648470355, 1.3872085410490378, 1.4503047774582574, 1.4977505431854592, 1.5325961604902731, 1.5870670122139432, 1.586954191663577, 1.531714697520623, 1.498016821257476, 1.4498415519816985, 1.3873050780699727, 1.3101144612824505, 1.2162262286783183, 1.1052798507484782, 0.19391600569882575, 0.0], [0.0, 0.19401756982488888, 1.1063800349518593, 1.2168294367591765, 1.3105927648470355, 1.3872085410490378, 1.4503047774582574, 1.4977505431854592, 1.5325961604902731, 1.5870670122139432, 1.586954191663577, 1.531714697520623, 1.498016821257476, 1.4498415519816985, 1.3873050780699727, 1.3101144612824505, 1.2162262286783183, 1.1052798507484782, 0.19391600569882575, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001106984, 0.002643611, 0.00277298, 0.002876676, 0.002960375, 0.00302659, 0.003075679, 0.003111572, 0.003166555, 0.003166868, 0.003111337, 0.00307603, 0.003026323, 0.002961072, 0.002876457, 0.002772808, 0.002643028, 0.001106968, 0.0], [0.0, 0.001106984, 0.002643611, 0.00277298, 0.002876676, 0.002960375, 0.00302659, 0.003075679, 0.003111572, 0.003166555, 0.003166868, 0.003111337, 0.00307603, 0.003026323, 0.002961072, 0.002876457, 0.002772808, 0.002643028, 0.001106968, 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, 0.9997974415366768, 0.9998685324846539, 1.00026627164975, 0.9994589832373645, 1.000005912814909, 0.9997667213008566, 0.9997533748272511, 0.9999595810521305, 1.0000672403802422, 1.000337624844467, 1.000384514618026, 0.9998043818744252, 0.9999124131273783, 1.0004078026676178, 0.9996726025173691, 1.0006386429848937, 1.0004234509589043, 1.000292661359548, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.0845198386466629, 0.08451622672420361, 0.08451621048068639, 0.08451598766294253, 0.0845159911534893, 0.08451593991456176, 0.08451586824293573, 0.08451593521707053, 0.08451588811061979, 0.08451603215759285, 0.08451594504311637, 0.08451593470051814, 0.0845161845319134, 0.08451603821488982, 0.08451607017588522, 0.08451620755986312, 0.08451630004480044, 0.08451983049245453, 1.0], [1.0, 0.0845198386466629, 0.08451622672420361, 0.08451621048068639, 0.08451598766294253, 0.0845159911534893, 0.08451593991456176, 0.08451586824293573, 0.08451593521707053, 0.08451588811061979, 0.08451603215759285, 0.08451594504311637, 0.08451593470051814, 0.0845161845319134, 0.08451603821488982, 0.08451607017588522, 0.08451620755986312, 0.08451630004480044, 0.08451983049245453, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0004822352385347484, 0.00020194509986464138, 0.0001926003384360239, 0.0001855077487434924, 0.00018036151011714856, 0.00017637334066726934, 0.00017355605865360503, 0.00017158950567325242, 0.00016862817134784402, 0.00016865711633823384, 0.000171675304368537, 0.0001735451477765156, 0.00017641463839381146, 0.0001803915218541554, 0.00018556152828962957, 0.0001926839028182411, 0.0002021017096471451, 0.00048248079050205994, 1.0], [1.0, 0.0004822352385347484, 0.00020194509986464138, 0.0001926003384360239, 0.0001855077487434924, 0.00018036151011714856, 0.00017637334066726934, 0.00017355605865360503, 0.00017158950567325242, 0.00016862817134784402, 0.00016865711633823384, 0.000171675304368537, 0.0001735451477765156, 0.00017641463839381146, 0.0001803915218541554, 0.00018556152828962957, 0.0001926839028182411, 0.0002021017096471451, 0.00048248079050205994, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }