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.0156241007194238, 12.40259892086332, 14.06097661870503, 15.346814748201442, 16.40713309352517, 17.28932553956835, 18.01437050359712, 18.59172661870504, 19.512284172661847, 19.505413669064776, 18.58546762589928, 18.019658273381292, 17.291865107913672, 16.417728417266183, 15.341769784172666, 14.060712230215822, 12.40378237410073, 2.016453237410071, 0.0], '_alpha3.yoda' : [0.0, 2.012616, 12.40443, 14.05597, 15.33705, 16.41515, 17.29336, 18.00976, 18.59379, 19.50644, 19.51067, 18.59855, 18.00962, 17.29908, 16.41657, 15.34506, 14.0635, 12.40462, 2.013602, 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.1703628319609107, 1.0482198933805023, 1.1883787803401986, 1.2970522980347694, 1.3866688359657766, 1.46122517602912, 1.5225032081541254, 1.5712982068869359, 1.649099140361944, 1.6485178249258932, 1.5707689304496042, 1.5229515544810366, 1.4614393429628803, 1.3875607288152476, 1.2966263810562921, 1.1883567315595887, 1.0483201840671355, 0.1704322183864515, 0.0], [0.0, 0.1703628319609107, 1.0482198933805023, 1.1883787803401986, 1.2970522980347694, 1.3866688359657766, 1.46122517602912, 1.5225032081541254, 1.5712982068869359, 1.649099140361944, 1.6485178249258932, 1.5707689304496042, 1.5229515544810366, 1.4614393429628803, 1.3875607288152476, 1.2966263810562921, 1.1883567315595887, 1.0483201840671355, 0.1704322183864515, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001037258, 0.002575103, 0.002741174, 0.002863368, 0.002962297, 0.003040507, 0.003102846, 0.003152755, 0.003229203, 0.003229552, 0.003153158, 0.003102833, 0.003041009, 0.002962426, 0.002864116, 0.002741908, 0.002575123, 0.001037512, 0.0], [0.0, 0.001037258, 0.002575103, 0.002741174, 0.002863368, 0.002962297, 0.003040507, 0.003102846, 0.003152755, 0.003229203, 0.003229552, 0.003153158, 0.003102833, 0.003041009, 0.002962426, 0.002864116, 0.002741908, 0.002575123, 0.001037512, 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.9985076082795645, 1.000147636729073, 0.9996439352087131, 0.9993637280203316, 1.00048862323656, 1.000233349786978, 0.9997440652396818, 1.000110983844442, 0.9997004875180101, 1.0002694806182737, 1.0007039034133576, 0.99944292654006, 1.0004172419829382, 0.9999294410751146, 1.000214461295771, 1.000198266612568, 1.0000675298770976, 0.9985860136217525, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08452113263584425, 0.08451614859666347, 0.08451609106292962, 0.08451605882496083, 0.084516217919449, 0.08451603115951285, 0.08451603722983887, 0.08451599139297052, 0.08451594522554431, 0.08451591198706089, 0.08451597571108199, 0.08451611741887172, 0.08451600413503389, 0.0845159996285466, 0.08451608903647848, 0.08451611213590339, 0.08451617034623587, 0.08452078889037583, 1.0], [1.0, 0.08452113263584425, 0.08451614859666347, 0.08451609106292962, 0.08451605882496083, 0.084516217919449, 0.08451603115951285, 0.08451603722983887, 0.08451599139297052, 0.08451594522554431, 0.08451591198706089, 0.08451597571108199, 0.08451611741887172, 0.08451600413503389, 0.0845159996285466, 0.08451608903647848, 0.08451611213590339, 0.08451617034623587, 0.08452078889037583, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.0005146088497501981, 0.00020762608034258294, 0.00019494904758987167, 0.00018657734826280938, 0.0001805493368715968, 0.00017586035921652907, 0.00017224282132869543, 0.0001695783863790268, 0.00016549589845172265, 0.00016557208448862633, 0.00016965717857999986, 0.00017219155618414345, 0.00017586356249149049, 0.0001804406751475118, 0.00018668745785474923, 0.00019500491547702443, 0.00020760788300969328, 0.0005145232137059516, 1.0], [1.0, 0.0005146088497501981, 0.00020762608034258294, 0.00019494904758987167, 0.00018657734826280938, 0.0001805493368715968, 0.00017586035921652907, 0.00017224282132869543, 0.0001695783863790268, 0.00016549589845172265, 0.00016557208448862633, 0.00016965717857999986, 0.00017219155618414345, 0.00017586356249149049, 0.0001804406751475118, 0.00018668745785474923, 0.00019500491547702443, 0.00020760788300969328, 0.0005145232137059516, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }