import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.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], '_alpha0.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 = { 'alpha0.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], '_alpha0.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['alpha0.yoda'][i] - xedges['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))], [abs(xedges['alpha0.yoda'][i+1] - xpoints['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))] ] yvals = { 'alpha0.yoda' : [0.0, 4.365548561151077, 21.355089928057573, 19.002787769784167, 16.931433453237414, 15.207185251798556, 13.83984532374101, 12.83241726618705, 12.192424460431655, 11.95723741007193, 11.963129496402894, 12.214338129496404, 12.873334532374098, 13.905444244604318, 15.270464028776972, 16.98619064748202, 19.045935251798554, 21.289190647482034, 4.287449640287768, 0.0], '_alpha0.yoda' : [0.0, 4.366016, 21.35358, 18.99661, 16.93436, 15.21285, 13.84026, 12.83264, 12.19612, 11.96203, 11.96726, 12.21759, 12.87187, 13.89392, 15.26785, 16.99418, 19.04687, 21.28741, 4.28719, 0.0], } xerrs = { 'alpha0.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], ], '_alpha0.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 = { 'alpha0.yoda' : [ [0.0, 0.368967488622045, 1.804844241159912, 1.606037463783402, 1.430977457230298, 1.2852504646150202, 1.1696908948537, 1.084548778763269, 1.0304581398848602, 1.0105815663371165, 1.0110787118134412, 1.0323106477880417, 1.088004481789376, 1.1752342741296624, 1.2906000358209553, 1.435605494544392, 1.6096870099708314, 1.799271442478958, 0.36236588623297383, 0.0], [0.0, 0.368967488622045, 1.804844241159912, 1.606037463783402, 1.430977457230298, 1.2852504646150202, 1.1696908948537, 1.084548778763269, 1.0304581398848602, 1.0105815663371165, 1.0110787118134412, 1.0323106477880417, 1.088004481789376, 1.1752342741296624, 1.2906000358209553, 1.435605494544392, 1.6096870099708314, 1.799271442478958, 0.36236588623297383, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.001493748, 0.003303468, 0.003115823, 0.002941841, 0.002788304, 0.002659543, 0.002560901, 0.002496581, 0.002472505, 0.002473046, 0.002498778, 0.002564813, 0.002664693, 0.002793339, 0.002947032, 0.003119943, 0.003298346, 0.001480202, 0.0], [0.0, 0.001493748, 0.003303468, 0.003115823, 0.002941841, 0.002788304, 0.002659543, 0.002560901, 0.002496581, 0.002472505, 0.002473046, 0.002498778, 0.002564813, 0.002664693, 0.002793339, 0.002947032, 0.003119943, 0.003298346, 0.001480202, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha0.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], '_alpha0.yoda' : [1.0, 1.000107074481563, 0.9999292942308996, 0.9996749019218123, 1.0001728469577411, 1.0003725047145575, 1.0000299624923032, 1.000017357120512, 1.000303101288865, 1.0004008108030065, 1.0003452694880839, 1.0002662338694999, 0.9998862351964508, 0.9991712422557956, 0.9998288179866671, 1.000470343980224, 1.0000490786190905, 0.9999163590804593, 0.9999394417871807, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08451801267439303, 0.0845158810962721, 0.08451588699722891, 0.08451602524868825, 0.08451599972868178, 0.0845161826228795, 0.08451632738135903, 0.08451626198128427, 0.08451630854848413, 0.08451623900898632, 0.08451629853729976, 0.08451613519816814, 0.08451612573152308, 0.08451609809556788, 0.08451603566319336, 0.08451603918052933, 0.08451572782978323, 0.08451781749876187, 1.0], [1.0, 0.08451801267439303, 0.0845158810962721, 0.08451588699722891, 0.08451602524868825, 0.08451599972868178, 0.0845161826228795, 0.08451632738135903, 0.08451626198128427, 0.08451630854848413, 0.08451623900898632, 0.08451629853729976, 0.08451613519816814, 0.08451612573152308, 0.08451609809556788, 0.08451603566319336, 0.08451603918052933, 0.08451572782978323, 0.08451781749876187, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.00034216730820333356, 0.0001546923010452749, 0.00016396662625230116, 0.00017375026208649207, 0.00018335437846199888, 0.00019216565920991856, 0.0001995649725907745, 0.00020476493482508008, 0.00020677895028807714, 0.00020672232970006738, 0.00020457743788553727, 0.00019923454902457177, 0.00019162947642136437, 0.00018292430372357987, 0.00017349575670969284, 0.00016381148831771735, 0.0001549305492451922, 0.0003452406731710674, 1.0], [1.0, 0.00034216730820333356, 0.0001546923010452749, 0.00016396662625230116, 0.00017375026208649207, 0.00018335437846199888, 0.00019216565920991856, 0.0001995649725907745, 0.00020476493482508008, 0.00020677895028807714, 0.00020672232970006738, 0.00020457743788553727, 0.00019923454902457177, 0.00019162947642136437, 0.00018292430372357987, 0.00017349575670969284, 0.00016381148831771735, 0.0001549305492451922, 0.0003452406731710674, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }