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.292426258992805, 13.08644784172663, 14.399401079136686, 15.513658273381298, 16.41751258992805, 17.15992446043166, 17.714395683453237, 18.139406474820145, 18.78235611510789, 18.770935251798587, 18.126420863309352, 17.715079136690647, 17.145868705035976, 16.418615107913663, 15.492219424460435, 14.40299640287769, 13.086908273381306, 2.2918453237410064, 0.0], '_alpha3.yoda' : [0.0, 2.292982, 13.08722, 14.39464, 15.4989, 16.41705, 17.15198, 17.7216, 18.12617, 18.78811, 18.78343, 18.12489, 17.72346, 17.15757, 16.41799, 15.49859, 14.40282, 13.08777, 2.292097, 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.19375654779561444, 1.1060171331704227, 1.2169842788432421, 1.3111537930121624, 1.3875430108117894, 1.4502887181793707, 1.4971493537947147, 1.5330712012526837, 1.587410418368189, 1.5864418630361954, 1.531973805249963, 1.4972086625809673, 1.4490998376671433, 1.3876360278060442, 1.3093432533864662, 1.2172872604346259, 1.1060548617856376, 0.1937057039593566, 0.0], [0.0, 0.19375654779561444, 1.1060171331704227, 1.2169842788432421, 1.3111537930121624, 1.3875430108117894, 1.4502887181793707, 1.4971493537947147, 1.5330712012526837, 1.587410418368189, 1.5864418630361954, 1.531973805249963, 1.4972086625809673, 1.4490998376671433, 1.3876360278060442, 1.3093432533864662, 1.2172872604346259, 1.1060548617856376, 0.1937057039593566, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001106482, 0.002643429, 0.002772327, 0.002876699, 0.00296068, 0.003026224, 0.003076065, 0.003110979, 0.003167273, 0.003166879, 0.003110869, 0.003076226, 0.003026717, 0.002960765, 0.002876671, 0.002773114, 0.002643485, 0.001106268, 0.0], [0.0, 0.001106482, 0.002643429, 0.002772327, 0.002876699, 0.00296068, 0.003026224, 0.003076065, 0.003110979, 0.003167273, 0.003166879, 0.003110869, 0.003076226, 0.003026717, 0.002960765, 0.002876671, 0.002773114, 0.002643485, 0.001106268, 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.0002424248130184, 1.0000590044206579, 0.9996693557523317, 0.9990486916031521, 0.9999718233852103, 0.9995370340673713, 1.000406692764207, 0.9992702917353706, 1.0003063452133931, 1.000665643348816, 0.9999155451966554, 1.000473092061553, 1.00068245564954, 0.999961926879365, 1.0004112112903272, 0.999987752348695, 1.0000658464627927, 1.000109813806537, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08452029679713356, 0.0845162221671679, 0.08451631232124873, 0.08451609349046131, 0.0845160314762317, 0.08451603161328185, 0.08451597110892022, 0.08451606194396635, 0.0845160430693426, 0.08451586677782537, 0.0845160672811538, 0.08451605838327972, 0.0845159765653357, 0.08451602152103638, 0.0845161830924731, 0.084516251090045, 0.08451613159353662, 0.08451953626746873, 1.0], [1.0, 0.08452029679713356, 0.0845162221671679, 0.08451631232124873, 0.08451609349046131, 0.0845160314762317, 0.08451603161328185, 0.08451597110892022, 0.08451606194396635, 0.0845160430693426, 0.08451586677782537, 0.0845160672811538, 0.08451605838327972, 0.0845159765653357, 0.08451602152103638, 0.0845161830924731, 0.084516251090045, 0.08451613159353662, 0.08451953626746873, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.00048266852452045345, 0.00020199744284857252, 0.00019253071601823974, 0.00018543008678590712, 0.0001803366974005759, 0.00017635415627720514, 0.0001736477526508741, 0.00017150390252947047, 0.00016863022831583696, 0.00016871183867604877, 0.0001716206979557048, 0.00017365014156943076, 0.00017652748029681412, 0.00018032976475421068, 0.00018568488614730482, 0.0001925372972700276, 0.00020199461513586314, 0.0004826974964410887, 1.0], [1.0, 0.00048266852452045345, 0.00020199744284857252, 0.00019253071601823974, 0.00018543008678590712, 0.0001803366974005759, 0.00017635415627720514, 0.0001736477526508741, 0.00017150390252947047, 0.00016863022831583696, 0.00016871183867604877, 0.0001716206979557048, 0.00017365014156943076, 0.00017652748029681412, 0.00018032976475421068, 0.00018568488614730482, 0.0001925372972700276, 0.00020199461513586314, 0.0004826974964410887, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }