import numpy as np from numpy import nan add_legend_handle = [ 'alpha1.yoda', '_alpha1.yoda' ] xpoints = { 'alpha1.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], '_alpha1.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 = { 'alpha1.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], '_alpha1.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['alpha1.yoda'][i] - xedges['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))], [abs(xedges['alpha1.yoda'][i+1] - xpoints['alpha1.yoda'][i]) for i in range(len(xpoints['alpha1.yoda']))] ] yvals = { 'alpha1.yoda' : [0.0, 5.919095323741005, 29.544028776978443, 27.114406474820132, 24.533884892086338, 22.223003597122293, 20.30807553956835, 18.824856115107913, 17.839633093525183, 17.426091726618683, 17.311856115107936, 17.518859712230217, 18.310665467625896, 19.590935251798566, 21.313902877697835, 23.434982014388492, 25.825161870503585, 28.127931654676285, 5.635665467625897, 0.0], '_alpha1.yoda' : [0.0, 5.913774, 29.54892, 27.11957, 24.52936, 22.23271, 20.30525, 18.83587, 17.8466, 17.43132, 17.32215, 17.51952, 18.30312, 19.58273, 21.31482, 23.42478, 25.83539, 28.12178, 5.622992, 0.0], } xerrs = { 'alpha1.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], ], '_alpha1.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 = { 'alpha1.yoda' : [ [0.0, 0.5002756925873552, 2.4969425172963993, 2.2916019497035918, 2.0735077894903036, 1.8781999590500638, 1.7163583405303269, 1.5910031685204526, 1.5077374709993154, 1.4727848300176938, 1.4631320941994088, 1.4806257463643744, 1.5475453933487455, 1.6557482061120807, 1.80136651715406, 1.9806331606311847, 2.1826434384196682, 2.3772617663000735, 0.47632188395638386, 0.0], [0.0, 0.5002756925873552, 2.4969425172963993, 2.2916019497035918, 2.0735077894903036, 1.8781999590500638, 1.7163583405303269, 1.5910031685204526, 1.5077374709993154, 1.4727848300176938, 1.4631320941994088, 1.4806257463643744, 1.5475453933487455, 1.6557482061120807, 1.80136651715406, 1.9806331606311847, 2.1826434384196682, 2.3772617663000735, 0.47632188395638386, 0.0], ], '_alpha1.yoda' : [ [0.0, 0.002065794, 0.004617697, 0.004423806, 0.004207245, 0.004005446, 0.003827885, 0.003686783, 0.003588661, 0.003546662, 0.003535539, 0.003555624, 0.003634271, 0.003759165, 0.003921891, 0.004111426, 0.004317797, 0.004504806, 0.002014366, 0.0], [0.0, 0.002065794, 0.004617697, 0.004423806, 0.004207245, 0.004005446, 0.003827885, 0.003686783, 0.003588661, 0.003546662, 0.003535539, 0.003555624, 0.003634271, 0.003759165, 0.003921891, 0.004111426, 0.004317797, 0.004504806, 0.002014366, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha1.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], '_alpha1.yoda' : [1.0, 0.999100990362554, 1.0001655570761347, 1.0001904347485777, 0.9998155656103287, 1.0004367727717491, 0.9998608662074925, 1.0005850713984075, 1.000390529695218, 1.0003000255859626, 1.0005946147440008, 1.0000376901111505, 0.9995879195303286, 0.9995811710011235, 1.0000430292991118, 0.9995646672831996, 1.0003960528707507, 0.9997812972972273, 0.9977512029948017, 1.0], } ratio0_yerrs = { 'alpha1.yoda' : [ [1.0, 0.0845189450794601, 0.08451597905435594, 0.08451602847481446, 0.08451608045813956, 0.0845160264156766, 0.0845160506314922, 0.08451608653962518, 0.08451617043326648, 0.08451607240010033, 0.08451618847054439, 0.08451610268508082, 0.08451606502695806, 0.08451603687272016, 0.08451603291478589, 0.08451609476018056, 0.08451615712475327, 0.08451605313485083, 0.08451919062489015, 1.0], [1.0, 0.0845189450794601, 0.08451597905435594, 0.08451602847481446, 0.08451608045813956, 0.0845160264156766, 0.0845160506314922, 0.08451608653962518, 0.08451617043326648, 0.08451607240010033, 0.08451618847054439, 0.08451610268508082, 0.08451606502695806, 0.08451603687272016, 0.08451603291478589, 0.08451609476018056, 0.08451615712475327, 0.08451605313485083, 0.08451919062489015, 1.0], ], '_alpha1.yoda' : [ [1.0, 0.0003490050230673377, 0.0001562988255548357, 0.00016315334079350691, 0.00017148710929825432, 0.00018023873246902927, 0.00018849078006144557, 0.0001958465433922317, 0.00020116226500770852, 0.00020352595726225904, 0.00020422645477711425, 0.0002029597849635018, 0.00019847836805415725, 0.00019188287601812608, 0.00018400623398278395, 0.00017543969086367069, 0.00016719341476545036, 0.00016015418607045264, 0.0003574317907213503, 1.0], [1.0, 0.0003490050230673377, 0.0001562988255548357, 0.00016315334079350691, 0.00017148710929825432, 0.00018023873246902927, 0.00018849078006144557, 0.0001958465433922317, 0.00020116226500770852, 0.00020352595726225904, 0.00020422645477711425, 0.0002029597849635018, 0.00019847836805415725, 0.00019188287601812608, 0.00018400623398278395, 0.00017543969086367069, 0.00016719341476545036, 0.00016015418607045264, 0.0003574317907213503, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }