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.013759, 12.40414, 14.06449, 15.34505, 16.41737, 17.29812, 18.01029, 18.5978, 19.50919, 19.50816, 18.59353, 18.00868, 17.29583, 16.41219, 15.33853, 14.05651, 12.40368, 2.012517, 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.001037552, 0.002575073, 0.002742005, 0.002864114, 0.002962498, 0.003040925, 0.003102891, 0.003153095, 0.00322943, 0.003229345, 0.003152733, 0.003102753, 0.003040724, 0.00296203, 0.002863506, 0.002741227, 0.002575026, 0.001037232, 0.0], [0.0, 0.001037552, 0.002575073, 0.002742005, 0.002864114, 0.002962498, 0.003040925, 0.003102891, 0.003153095, 0.00322943, 0.003229345, 0.003152733, 0.003102753, 0.003040724, 0.00296203, 0.002863506, 0.002741227, 0.002575026, 0.001037232, 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.9990746783000073, 1.0001242545329825, 1.0002498675156244, 0.9998850088288419, 1.000623930239151, 1.000508664170359, 0.9997734861955734, 1.0003266711811936, 0.9998414243747955, 1.0001407983948365, 1.0004337999055501, 0.9993907612888802, 1.0002292923326421, 0.9996626562990066, 0.9997888259165505, 0.9997011367456342, 0.9999917465416884, 0.998047940147064, 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.0005147547102803907, 0.00020762366149471153, 0.00019500814732544016, 0.000186625957698203, 0.0001805615876407503, 0.00017588453598380916, 0.00017224531933438434, 0.00016959667408338974, 0.0001655075321486282, 0.0001655614720502791, 0.00016963431125115158, 0.0001721871165882984, 0.00017584708075292605, 0.00018041655488008286, 0.0001866476971225403, 0.00019495648265307854, 0.0002076000628144436, 0.0005143843560350643, 1.0], [1.0, 0.0005147547102803907, 0.00020762366149471153, 0.00019500814732544016, 0.000186625957698203, 0.0001805615876407503, 0.00017588453598380916, 0.00017224531933438434, 0.00016959667408338974, 0.0001655075321486282, 0.0001655614720502791, 0.00016963431125115158, 0.0001721871165882984, 0.00017584708075292605, 0.00018041655488008286, 0.0001866476971225403, 0.00019495648265307854, 0.0002076000628144436, 0.0005143843560350643, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }