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.951836330935251, 16.893839928057567, 19.066205035971215, 20.795251798561157, 22.215071942446034, 23.399658273381302, 24.32910071942446, 25.05428057553957, 25.65886690647479, 25.667122302158308, 25.043866906474822, 24.338615107913668, 23.3983273381295, 22.213794964028768, 20.800503597122308, 19.070701438848914, 16.899667266187063, 2.949937050359711, 0.0], '_alpha3.yoda' : [0.0, 2.955165, 16.8941, 19.07076, 20.78737, 22.21974, 23.40491, 24.33094, 25.04594, 25.65719, 25.65805, 25.04585, 24.33795, 23.39433, 22.21991, 20.79606, 19.07347, 16.90077, 2.953009, 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.24948895803037, 1.4278005449826616, 1.6114023922946312, 1.7575326618298412, 1.8775315880531716, 1.9776527299748037, 2.0561959408873385, 2.117487832985218, 2.168585973861461, 2.169281727935426, 2.116609240576573, 2.0570012652569947, 1.9775349569547318, 1.8774247644534006, 1.7579763618064834, 1.6117819578510797, 1.4282944732163552, 0.24933007647460528, 0.0], [0.0, 0.24948895803037, 1.4278005449826616, 1.6114023922946312, 1.7575326618298412, 1.8775315880531716, 1.9776527299748037, 2.0561959408873385, 2.117487832985218, 2.168585973861461, 2.169281727935426, 2.116609240576573, 2.0570012652569947, 1.9775349569547318, 1.8774247644534006, 1.7579763618064834, 1.6117819578510797, 1.4282944732163552, 0.24933007647460528, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.00146018, 0.003491267, 0.003709364, 0.003872712, 0.004003916, 0.004109311, 0.004189815, 0.004250932, 0.004302492, 0.004302564, 0.004250924, 0.004190419, 0.004108381, 0.004003931, 0.003873522, 0.003709627, 0.003491955, 0.001459647, 0.0], [0.0, 0.00146018, 0.003491267, 0.003709364, 0.003872712, 0.004003916, 0.004109311, 0.004189815, 0.004250932, 0.004302492, 0.004302564, 0.004250924, 0.004190419, 0.004108381, 0.004003931, 0.003873522, 0.003709627, 0.003491955, 0.001459647, 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, 1.0011276604430486, 1.0000153944836427, 1.0002389024989604, 0.999620980854788, 1.0002101302019666, 1.0002244360390797, 1.000075600023065, 0.999667099779041, 0.9999346461213232, 0.9996465399567779, 1.0000791847973232, 0.9999726727297046, 0.9998291613724462, 1.000275281012593, 0.9997863706952306, 1.000145173535434, 1.0000652518061788, 1.0010413610825746, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08451991576081817, 0.08451604555642481, 0.08451615773849501, 0.08451605582152395, 0.08451611558663456, 0.08451630818149672, 0.08451590400321138, 0.08451601021234335, 0.08451604592540435, 0.0845159695893534, 0.0845160712792858, 0.08451595360444988, 0.08451608221294415, 0.08451616517995017, 0.08451604806576388, 0.08451613397752217, 0.08451612985742588, 0.08452047356203833, 1.0], [1.0, 0.08451991576081817, 0.08451604555642481, 0.08451615773849501, 0.08451605582152395, 0.08451611558663456, 0.08451630818149672, 0.08451590400321138, 0.08451601021234335, 0.08451604592540435, 0.0845159695893534, 0.0845160712792858, 0.08451595360444988, 0.08451608221294415, 0.08451616517995017, 0.08451604806576388, 0.08451613397752217, 0.08451612985742588, 0.08452047356203833, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0004946683475290654, 0.00020665917369097636, 0.00019455177330788884, 0.00018623058944003537, 0.00018023421262704857, 0.00017561414581317283, 0.00017221413353165306, 0.0001696688909978191, 0.00016768051432989442, 0.00016762938787408217, 0.0001697391227910163, 0.00017217162855899268, 0.00017558438860307144, 0.0001802452487962387, 0.00018622251052305728, 0.0001945196935673861, 0.00020662862439822829, 0.0004948061518200914, 1.0], [1.0, 0.0004946683475290654, 0.00020665917369097636, 0.00019455177330788884, 0.00018623058944003537, 0.00018023421262704857, 0.00017561414581317283, 0.00017221413353165306, 0.0001696688909978191, 0.00016768051432989442, 0.00016762938787408217, 0.0001697391227910163, 0.00017217162855899268, 0.00017558438860307144, 0.0001802452487962387, 0.00018622251052305728, 0.0001945196935673861, 0.00020662862439822829, 0.0004948061518200914, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }