import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.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], '_alpha2.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 = { 'alpha2.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], '_alpha2.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['alpha2.yoda'][i] - xedges['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))], [abs(xedges['alpha2.yoda'][i+1] - xpoints['alpha2.yoda'][i]) for i in range(len(xpoints['alpha2.yoda']))] ] yvals = { 'alpha2.yoda' : [0.0, 2.2957176258992793, 13.091762589928068, 14.398854316546757, 15.508239208633096, 16.414741007194237, 17.16104496402878, 17.722185251798557, 18.13269784172662, 18.757877697841703, 18.75669064748204, 18.122500000000002, 17.725010791366905, 17.15562769784173, 16.415947841726613, 15.502588129496406, 14.391679856115102, 13.078751798561163, 2.2944802158273374, 0.0], '_alpha2.yoda' : [0.0, 2.295272, 13.09021, 14.40277, 15.50005, 16.4149, 17.1571, 17.71787, 18.13211, 18.7584, 18.76229, 18.12938, 17.72175, 17.15426, 16.42265, 15.49767, 14.40102, 13.0845, 2.295167, 0.0], } xerrs = { 'alpha2.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], ], '_alpha2.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 = { 'alpha2.yoda' : [ [0.0, 0.19403357508278515, 1.106466283377272, 1.216936565657437, 1.3106942044792147, 1.3873081093169213, 1.4503817257022453, 1.4978058327132073, 1.5325022322895538, 1.5853383573098863, 1.5852413303864665, 1.5316403569757544, 1.4980457569799706, 1.449928229788889, 1.387410818039689, 1.3102179130827638, 1.2163302193163803, 1.1053677945759275, 0.19392901688205694, 0.0], [0.0, 0.19403357508278515, 1.106466283377272, 1.216936565657437, 1.3106942044792147, 1.3873081093169213, 1.4503817257022453, 1.4978058327132073, 1.5325022322895538, 1.5853383573098863, 1.5852413303864665, 1.5316403569757544, 1.4980457569799706, 1.449928229788889, 1.387410818039689, 1.3102179130827638, 1.2163302193163803, 1.1053677945759275, 0.19392901688205694, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.001106972, 0.002643583, 0.002772954, 0.002876645, 0.002960321, 0.003026506, 0.003075569, 0.003111314, 0.003164591, 0.003164919, 0.00311108, 0.003075905, 0.003026256, 0.00296102, 0.002876424, 0.002772786, 0.002643006, 0.001106947, 0.0], [0.0, 0.001106972, 0.002643583, 0.002772954, 0.002876645, 0.002960321, 0.003026506, 0.003075569, 0.003111314, 0.003164591, 0.003164919, 0.00311108, 0.003075905, 0.003026256, 0.00296102, 0.002876424, 0.002772786, 0.002643006, 0.001106947, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha2.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], '_alpha2.yoda' : [1.0, 0.9998058881918874, 0.9998814071124952, 1.0002719440982706, 0.9994719446532306, 1.0000096859771161, 0.9997701209898903, 0.9997565056601517, 0.9999675811215876, 1.0000278444164479, 1.0002985256100447, 1.0003796385708372, 0.9998160344495535, 0.9999202770154599, 1.000408271172521, 0.9996827542952619, 1.0006489960851186, 1.0004395068831775, 1.0002993201544843, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.08451979149952218, 0.08451621970509254, 0.08451620794989, 0.08451599094174277, 0.08451599137073763, 0.08451593295993261, 0.08451586592918617, 0.08451595265449076, 0.0845158702304737, 0.08451604604351007, 0.08451595293010093, 0.0845159291925286, 0.08451618648563337, 0.08451603473745944, 0.08451607577639525, 0.084516208773193, 0.08451630641828776, 0.08451980345889823, 1.0], [1.0, 0.08451979149952218, 0.08451621970509254, 0.08451620794989, 0.08451599094174277, 0.08451599137073763, 0.08451593295993261, 0.08451586592918617, 0.08451595265449076, 0.0845158702304737, 0.08451604604351007, 0.08451595293010093, 0.0845159291925286, 0.08451618648563337, 0.08451603473745944, 0.08451607577639525, 0.084516208773193, 0.08451630641828776, 0.08451980345889823, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.0004821899642672197, 0.00020192720283774448, 0.00019258157205003453, 0.00018549139984883875, 0.00018034527615772637, 0.00017635907407409347, 0.00017354344039981594, 0.00017158582948645972, 0.00016870730532399838, 0.0001687354693576966, 0.00017166947165126223, 0.00017353473214798502, 0.0001764001908470373, 0.00018037459844222816, 0.00018554476039565912, 0.00019266590333593534, 0.00020208396341696506, 0.0004824391129477925, 1.0], [1.0, 0.0004821899642672197, 0.00020192720283774448, 0.00019258157205003453, 0.00018549139984883875, 0.00018034527615772637, 0.00017635907407409347, 0.00017354344039981594, 0.00017158582948645972, 0.00016870730532399838, 0.0001687354693576966, 0.00017166947165126223, 0.00017353473214798502, 0.0001764001908470373, 0.00018037459844222816, 0.00018554476039565912, 0.00019266590333593534, 0.00020208396341696506, 0.0004824391129477925, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }