import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.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], '_alpha3.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 = { 'alpha3.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], '_alpha3.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['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, 0.0, 0.0, 0.28800100609756096, 0.48760304878048777, 0.6055051829268294, 0.7263003048780485, 0.869838414634147, 1.0545722560975606, 1.301775609756097, 1.6365417682926842, 2.12665731707317, 2.855420731707316, 4.062707317073169, 6.373448170731705, 12.32876829268295, 576.7923780487803, 0.0, 0.0, 0.0], '_alpha3.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 = { 'alpha3.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], ], '_alpha3.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 = { 'alpha3.yoda' : [ [0.0, 0.0, 0.0, 0.024359094056756566, 0.04123352473252724, 0.05119406307367753, 0.06140324132980331, 0.07353204744725024, 0.08914396934717264, 0.11003960673578006, 0.13833154000925665, 0.17975696110425657, 0.2413472674279604, 0.34338351157303115, 0.5386720616258137, 1.0419922651947866, 48.74785493839278, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.024359094056756566, 0.04123352473252724, 0.05119406307367753, 0.06140324132980331, 0.07353204744725024, 0.08914396934717264, 0.11003960673578006, 0.13833154000925665, 0.17975696110425657, 0.2413472674279604, 0.34338351157303115, 0.5386720616258137, 1.0419922651947866, 48.74785493839278, 0.0, 0.0, 0.0], ], '_alpha3.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 = { '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.0, 1.0, 1.0034083002547098, 1.0024248232706283, 0.9968832918692663, 0.9961466285236952, 1.000151160679548, 1.0013623949370298, 1.000982035793513, 1.0022170113697133, 0.9973614380520447, 0.9982371313441062, 1.0007395765169211, 1.0000696372287663, 0.9991071052337415, 1.0000213628884305, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.08457989222615726, 0.08456371393832283, 0.08454768764524999, 0.08454249697735344, 0.08453529553322582, 0.08453092600506054, 0.08453039518569354, 0.08452673967103846, 0.08452558842514815, 0.08452248901465872, 0.08452085881992834, 0.08451815205770652, 0.08451714238260141, 0.08451542841689577, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08457989222615726, 0.08456371393832283, 0.08454768764524999, 0.08454249697735344, 0.08453529553322582, 0.08453092600506054, 0.08453039518569354, 0.08452673967103846, 0.08452558842514815, 0.08452248901465872, 0.08452085881992834, 0.08451815205770652, 0.08451714238260141, 0.08451542841689577, 1.0, 1.0, 1.0], ], '_alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.002064228552724611, 0.0015856547696609473, 0.0014189893401851, 0.0012951481552220265, 0.001185848983726301, 0.0010776388184204847, 0.000969753151417951, 0.0008654328459197025, 0.0007573443953897651, 0.0006538794718645967, 0.0005488689747915306, 0.00043807040164248515, 0.000314819851250149, 4.604800793285407e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.002064228552724611, 0.0015856547696609473, 0.0014189893401851, 0.0012951481552220265, 0.001185848983726301, 0.0010776388184204847, 0.000969753151417951, 0.0008654328459197025, 0.0007573443953897651, 0.0006538794718645967, 0.0005488689747915306, 0.00043807040164248515, 0.000314819851250149, 4.604800793285407e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }