import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.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], '_alpha0.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 = { 'alpha0.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], '_alpha0.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['alpha0.yoda'][i] - xedges['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))], [abs(xedges['alpha0.yoda'][i+1] - xpoints['alpha0.yoda'][i]) for i in range(len(xpoints['alpha0.yoda']))] ] yvals = { 'alpha0.yoda' : [0.0, 5.552476618705034, 27.896061151079163, 25.787410071942432, 23.548201438848924, 21.563776978417255, 19.96012589928058, 18.805395683453238, 18.139784172661873, 18.122895683453216, 18.25242805755398, 18.483201438848923, 19.339874100719424, 20.696169064748208, 22.48275179856114, 24.648003597122308, 27.07214028776977, 29.305647482014415, 5.8332751798561135, 0.0], '_alpha0.yoda' : [0.0, 5.543195, 27.89046, 25.79858, 23.53559, 21.55923, 19.95354, 18.7984, 18.14029, 18.13011, 18.2615, 18.48795, 19.34783, 20.69376, 22.49285, 24.64641, 27.07457, 29.3074, 5.829065, 0.0], } xerrs = { 'alpha0.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], ], '_alpha0.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 = { 'alpha0.yoda' : [ [0.0, 0.4692890664470622, 2.3576653420536307, 2.1794524402447633, 1.99020198440247, 1.82248388696427, 1.6869516085285634, 1.5893579701598686, 1.533104750320981, 1.5316771053096874, 1.5426254903736512, 1.5621282747100909, 1.6345290690829386, 1.7491586515530502, 1.9001532562905121, 2.0831515715268956, 2.288029938604003, 2.4767943752580015, 0.49302402874991463, 0.0], [0.0, 0.4692890664470622, 2.3576653420536307, 2.1794524402447633, 1.99020198440247, 1.82248388696427, 1.6869516085285634, 1.5893579701598686, 1.533104750320981, 1.5316771053096874, 1.5426254903736512, 1.5621282747100909, 1.6345290690829386, 1.7491586515530502, 1.9001532562905121, 2.0831515715268956, 2.288029938604003, 2.4767943752580015, 0.49302402874991463, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.002012951, 0.004515242, 0.004342612, 0.004147781, 0.003969812, 0.00381912, 0.003706925, 0.003641458, 0.003640435, 0.003653603, 0.003676187, 0.003760707, 0.003889315, 0.004054857, 0.004244534, 0.004448708, 0.004628516, 0.002064204, 0.0], [0.0, 0.002012951, 0.004515242, 0.004342612, 0.004147781, 0.003969812, 0.00381912, 0.003706925, 0.003641458, 0.003640435, 0.003653603, 0.003676187, 0.003760707, 0.003889315, 0.004054857, 0.004244534, 0.004448708, 0.004628516, 0.002064204, 0.0], ], } variation_yvals = { } # lists for ratio plot ratio0_yvals = { 'alpha0.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], '_alpha0.yoda' : [1.0, 0.9983283822080823, 0.9997992135502992, 1.0004331543193523, 0.9994644415251128, 0.9997891381263214, 0.9996700472074268, 0.9996279959448344, 1.0000278849700368, 1.0003980774746373, 1.000497026610236, 1.0002569122652691, 1.0004113728579174, 0.9998835985181281, 1.0004491532677733, 0.9999353457931783, 1.00008974954342, 1.000059801374007, 0.9992782476865394, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08451887304957463, 0.08451606588059203, 0.08451614311652339, 0.08451609306853944, 0.08451598663760793, 0.0845160805618649, 0.08451606107699908, 0.08451615166576756, 0.08451613539375817, 0.08451617973835637, 0.084516109391457, 0.08451601393941524, 0.08451605928038115, 0.08451604471353542, 0.08451603649433526, 0.08451603435424178, 0.08451594105805273, 0.08451924751509422, 1.0], [1.0, 0.08451887304957463, 0.08451606588059203, 0.08451614311652339, 0.08451609306853944, 0.08451598663760793, 0.0845160805618649, 0.08451606107699908, 0.08451615166576756, 0.08451613539375817, 0.08451617973835637, 0.084516109391457, 0.08451601393941524, 0.08451605928038115, 0.08451604471353542, 0.08451603649433526, 0.08451603435424178, 0.08451594105805273, 0.08451924751509422, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.00036253209841871723, 0.0001618594817220397, 0.00016840047092301478, 0.00017614003391176825, 0.00018409632060159515, 0.00019133747047846286, 0.00019712028730465387, 0.00020074428479077347, 0.00020087490782854495, 0.00020017079308458984, 0.00019889341206189557, 0.00019445354092869225, 0.00018792439256909007, 0.0001803541237447413, 0.00017220599564078107, 0.00016432790140385642, 0.0001579393870359163, 0.0003538670706172509, 1.0], [1.0, 0.00036253209841871723, 0.0001618594817220397, 0.00016840047092301478, 0.00017614003391176825, 0.00018409632060159515, 0.00019133747047846286, 0.00019712028730465387, 0.00020074428479077347, 0.00020087490782854495, 0.00020017079308458984, 0.00019889341206189557, 0.00019445354092869225, 0.00018792439256909007, 0.0001803541237447413, 0.00017220599564078107, 0.00016432790140385642, 0.0001579393870359163, 0.0003538670706172509, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }