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.294838, 13.08356, 14.39948, 15.49606, 16.42161, 17.15312, 17.72089, 18.13075, 18.78298, 18.78016, 18.13222, 17.71693, 17.15672, 16.41363, 15.49878, 14.40151, 13.08883, 2.295189, 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.00110693, 0.00264306, 0.002772793, 0.002876435, 0.002961092, 0.003026325, 0.003076003, 0.003111371, 0.003166841, 0.003166604, 0.003111498, 0.00307566, 0.003026643, 0.002960372, 0.002876688, 0.002772988, 0.002643592, 0.001107014, 0.0], [0.0, 0.00110693, 0.00264306, 0.002772793, 0.002876435, 0.002961092, 0.003026325, 0.003076003, 0.003111371, 0.003166841, 0.003166604, 0.003111498, 0.00307566, 0.003026643, 0.002960372, 0.002876688, 0.002772988, 0.002643592, 0.001107014, 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.9996998604574274, 0.9994514437960151, 1.0001315268421545, 0.9992919623183435, 1.0004902683460264, 0.9995913147359078, 0.9999638532610468, 0.9998310918035388, 1.0002477676412147, 1.0001703986306487, 1.00048769624675, 0.999563474672283, 1.0001234352129211, 0.9999350555646809, 0.9998332335316485, 1.0007685902795749, 1.0008501310923843, 1.0003763460837463, 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.00048221171452457213, 0.00020190300904642894, 0.0001925873501478691, 0.0001854922074147341, 0.00018040519350278516, 0.00017635789789660107, 0.0001735743414987926, 0.00017157842140760136, 0.0001686434016713361, 0.00016864305655465165, 0.00017168418792052874, 0.00017352427291356652, 0.00017643329227982627, 0.00018034887714126158, 0.0001855764302030025, 0.0001926964111139858, 0.00020214483645633556, 0.0004825008399672324, 1.0], [1.0, 0.00048221171452457213, 0.00020190300904642894, 0.0001925873501478691, 0.0001854922074147341, 0.00018040519350278516, 0.00017635789789660107, 0.0001735743414987926, 0.00017157842140760136, 0.0001686434016713361, 0.00016864305655465165, 0.00017168418792052874, 0.00017352427291356652, 0.00017643329227982627, 0.00018034887714126158, 0.0001855764302030025, 0.0001926964111139858, 0.00020214483645633556, 0.0004825008399672324, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }