import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], '_alpha2.yoda' : [-8.36, -5.08, -1.7999999999999998, 1.48, 4.76, 8.04, 11.32, 14.6, 17.88, 21.16, 24.439999999999998, 27.72, 31.0, 34.28, 37.56, 40.84, 44.12, 47.4, 50.68, 53.96], } xedges = { 'alpha2.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 55.6], '_alpha2.yoda' : [-10.0, -6.72, -3.44, -0.15999999999999992, 3.12, 6.4, 9.68, 12.96, 16.24, 19.52, 22.8, 26.08, 29.36, 32.64, 35.92, 39.2, 42.48, 45.76, 49.04, 52.32, 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, 0.0, 0.0, 0.2879830487804878, 0.4875871951219512, 0.6054887195121952, 0.7262862804878046, 0.869781402439025, 1.054530182926829, 1.3017265243902436, 1.6364734756097572, 2.1265847560975604, 2.8553149390243893, 4.06251219512195, 6.373234756097559, 12.328445121951242, 576.7771341463413, 0.0, 0.0, 0.0], '_alpha2.yoda' : [0.0, 0.0, 0.0, 0.2889826, 0.4887854, 0.603618, 0.7235016, 0.8699699, 1.056009, 1.303054, 1.64017, 2.121046, 2.850387, 4.065712, 6.373892, 12.31776, 576.8047, 0.0, 0.0, 0.0], } xerrs = { 'alpha2.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], '_alpha2.yoda' : [ [1.6399999999999997, 1.6400000000000001, 1.6400000000000001, 1.64, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6399999999999935, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], [1.6400000000000006, 1.6399999999999997, 1.64, 1.6400000000000001, 1.6399999999999997, 1.6399999999999988, 1.6400000000000006, 1.6399999999999988, 1.6400000000000006, 1.6400000000000006, 1.639999999999997, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006, 1.6400000000000006], ], } yerrs = { 'alpha2.yoda' : [ [0.0, 0.0, 0.0, 0.024357563853246104, 0.04123218343266129, 0.05119267408073142, 0.061402030298734096, 0.07352718688676502, 0.08914041887503076, 0.11003538314705343, 0.1383257275980376, 0.17975083347688134, 0.24133831293621458, 0.34336699906080276, 0.5386539430330317, 1.0419650574010337, 48.74656785612026, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.024357563853246104, 0.04123218343266129, 0.05119267408073142, 0.061402030298734096, 0.07352718688676502, 0.08914041887503076, 0.11003538314705343, 0.1383257275980376, 0.17975083347688134, 0.24133831293621458, 0.34336699906080276, 0.5386539430330317, 1.0419650574010337, 48.74656785612026, 0.0, 0.0, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.0, 0.0, 0.0005944999, 0.0007731701, 0.0008592054, 0.0009406665, 0.001031497, 0.001136448, 0.001262401, 0.001416317, 0.001610612, 0.001867101, 0.002229894, 0.002792019, 0.003881341, 0.02656014, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0005944999, 0.0007731701, 0.0008592054, 0.0009406665, 0.001031497, 0.001136448, 0.001262401, 0.001416317, 0.001610612, 0.001867101, 0.002229894, 0.002792019, 0.003881341, 0.02656014, 0.0, 0.0, 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, 1.0, 1.0, 1.0034708682463949, 1.0024574166221676, 0.9969103974163179, 0.9961658638437527, 1.0002167183161728, 1.00140234684328, 1.0010197807180568, 1.0022588355053328, 0.9973954689171551, 0.998274117171091, 1.0007876419132706, 1.0001031256383286, 0.999133295249681, 1.0000477929030587, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 1.0, 1.0, 0.0845798527253332, 0.08456371259370059, 0.08454769251849018, 0.08454246204057977, 0.08453524837457024, 0.08453093170612071, 0.08453033804361967, 0.08452671531782502, 0.08452559107342486, 0.08452248459102575, 0.08452085373998378, 0.08451813931970377, 0.08451715095407913, 0.08451543060608252, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0845798527253332, 0.08456371259370059, 0.08454769251849018, 0.08454246204057977, 0.08453524837457024, 0.08453093170612071, 0.08453033804361967, 0.08452671531782502, 0.08452559107342486, 0.08452248459102575, 0.08452085373998378, 0.08451813931970377, 0.08451715095407913, 0.08451543060608252, 1.0, 1.0, 1.0], ], '_alpha2.yoda' : [ [1.0, 1.0, 1.0, 0.0020643572686569883, 0.0015857063264481776, 0.0014190279229185452, 0.00129517316418012, 0.0011859267134333926, 0.001077681813569157, 0.0009697897187670318, 0.0008654689618310338, 0.0007573702366585151, 0.0006539036988465991, 0.0005488953368995517, 0.00043808507090198595, 0.0003148281037556903, 4.6049224956378204e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.0020643572686569883, 0.0015857063264481776, 0.0014190279229185452, 0.00129517316418012, 0.0011859267134333926, 0.001077681813569157, 0.0009697897187670318, 0.0008654689618310338, 0.0007573702366585151, 0.0006539036988465991, 0.0005488953368995517, 0.00043808507090198595, 0.0003148281037556903, 4.6049224956378204e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }