import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06, 0.06, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], '_alpha3.yoda' : [-1.1400000000000001, -1.02, -0.8999999999999999, -0.78, -0.6599999999999999, -0.54, -0.42, -0.3, -0.18, -0.06000000000000005, 0.05999999999999994, 0.18, 0.3, 0.42, 0.54, 0.6599999999999999, 0.78, 0.8999999999999999, 1.02, 1.1400000000000001], } xedges = { 'alpha3.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, 0.0, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], '_alpha3.yoda' : [-1.2, -1.08, -0.96, -0.84, -0.72, -0.6, -0.48, -0.36, -0.24, -0.12, -1.1102230246251565e-16, 0.12, 0.24, 0.36, 0.48, 0.6, 0.72, 0.84, 0.96, 1.08, 1.2], } 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, 381.22174999999964, 1008.6425, 894.2241666666666, 798.2665833333333, 718.4195000000001, 654.5996666666666, 606.3700833333334, 574.6583333333334, 558.1938333333334, 558.5358333333334, 574.3035833333334, 606.1300833333333, 653.3383333333334, 717.4525000000001, 797.1565833333333, 893.1916666666667, 1008.1550000000001, 381.28424999999964, 0.0], '_alpha3.yoda' : [0.0, 381.4309, 1008.84, 894.6023, 798.1366, 718.3829, 654.1883, 606.4074, 574.4865, 558.3554, 558.3185, 574.2729, 606.0646, 653.4276, 717.3659, 797.2802, 893.5434, 1007.932, 381.3942, 0.0], } xerrs = { 'alpha3.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], '_alpha3.yoda' : [ [0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005, 0.05999999999999983], [0.05999999999999983, 0.06000000000000005, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06, 0.06, 0.06, 0.05999999999999994, 0.06000000000000005, 0.06, 0.06, 0.06, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.05999999999999994, 0.06000000000000005, 0.06000000000000005], ], } yerrs = { 'alpha3.yoda' : [ [0.0, 32.219667044282794, 85.24621203705574, 75.57618948231425, 67.46627758451707, 60.71793278028421, 55.324246241790064, 51.248231676810086, 48.56802932199558, 47.17655226204363, 47.20535809983157, 48.53798626963331, 51.22789496184888, 55.217656445500594, 60.63622175637998, 67.37262673618518, 75.48900766189591, 85.20518535342266, 32.22488255301412, 0.0], [0.0, 32.219667044282794, 85.24621203705574, 75.57618948231425, 67.46627758451707, 60.71793278028421, 55.324246241790064, 51.248231676810086, 48.56802932199558, 47.17655226204363, 47.20535809983157, 48.53798626963331, 51.22789496184888, 55.217656445500594, 60.63622175637998, 67.37262673618518, 75.48900766189591, 85.20518535342266, 32.22488255301412, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.0971988, 0.1580753, 0.1488566, 0.140602, 0.1333924, 0.127293, 0.1225562, 0.1192869, 0.1176003, 0.1175964, 0.1192648, 0.1225215, 0.1272189, 0.1332979, 0.1405266, 0.1487685, 0.1580042, 0.09719413, 0.0], [0.0, 0.0971988, 0.1580753, 0.1488566, 0.140602, 0.1333924, 0.127293, 0.1225562, 0.1192869, 0.1176003, 0.1175964, 0.1192648, 0.1225215, 0.1272189, 0.1332979, 0.1405266, 0.1487685, 0.1580042, 0.09719413, 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.0005486308165794, 1.000195807731679, 1.0004228619035682, 0.9998371680137349, 0.9999490548349534, 0.9993715751968507, 1.0000615410748195, 0.9997009817427746, 1.0002894454524907, 0.9996108873945717, 0.9999465729725117, 0.9998919648848755, 1.0001366316074112, 0.9998792951449746, 1.0001550720012244, 1.0003937937919258, 0.999778803854566, 1.000288367536819, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.0845168646444827, 0.08451578437063255, 0.0845159326928437, 0.08451597372746979, 0.08451598652358991, 0.08451615400831257, 0.0845164250107602, 0.08451635781608592, 0.0845164339783587, 0.08451625711838524, 0.08451625181913798, 0.08451633794535944, 0.08451617428259568, 0.08451600873420885, 0.08451617680238505, 0.08451602324461444, 0.08451595771823049, 0.08451668945941027, 1.0], [1.0, 0.0845168646444827, 0.08451578437063255, 0.0845159326928437, 0.08451597372746979, 0.08451598652358991, 0.08451615400831257, 0.0845164250107602, 0.08451635781608592, 0.0845164339783587, 0.08451625711838524, 0.08451625181913798, 0.08451633794535944, 0.08451617428259568, 0.08451600873420885, 0.08451617680238505, 0.08451602324461444, 0.08451595771823049, 0.08451668945941027, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0002549665647356167, 0.00015672084013909783, 0.00016646452371655505, 0.00017613414232233823, 0.00018567480420562078, 0.00019445931075430834, 0.0002021145227453916, 0.00020757882219869775, 0.00021068004155067998, 0.00021054405640939181, 0.00020766856321489661, 0.00020213730248498638, 0.00019472131590829661, 0.00018579334520403787, 0.00017628481397266265, 0.0001665583161508821, 0.0001567260986653838, 0.0002549125226127229, 1.0], [1.0, 0.0002549665647356167, 0.00015672084013909783, 0.00016646452371655505, 0.00017613414232233823, 0.00018567480420562078, 0.00019445931075430834, 0.0002021145227453916, 0.00020757882219869775, 0.00021068004155067998, 0.00021054405640939181, 0.00020766856321489661, 0.00020213730248498638, 0.00019472131590829661, 0.00018579334520403787, 0.00017628481397266265, 0.0001665583161508821, 0.0001567260986653838, 0.0002549125226127229, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }