import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.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], '_alpha0.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 = { 'alpha0.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], '_alpha0.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['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, 0.0, 0.0, 0.5658695121951219, 0.9818810975609755, 1.2182804878048783, 1.4305621951219507, 1.6643859756097572, 1.9386292682926825, 2.276129268292682, 2.70464298780488, 3.2924237804878036, 4.134902439024389, 5.481225609756096, 7.976472560975607, 14.252798780487831, 571.6310975609754, 0.0, 0.0, 0.0], '_alpha0.yoda' : [0.0, 0.0, 0.0, 0.5683515, 0.9864264, 1.212699, 1.428309, 1.664125, 1.940013, 2.277146, 2.705771, 3.288169, 4.129828, 5.483616, 7.971001, 14.24197, 571.654, 0.0, 0.0, 0.0], } xerrs = { 'alpha0.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], ], '_alpha0.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 = { 'alpha0.yoda' : [ [0.0, 0.0, 0.0, 0.04785168541281608, 0.08301451940942685, 0.10298733555612281, 0.12092975410673945, 0.14068670154732657, 0.1638654139365366, 0.19238995846556517, 0.2286060305569818, 0.278286530521334, 0.3494832113575999, 0.46327009539889163, 0.6741543770037493, 1.2046051551087025, 48.31165708800447, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.04785168541281608, 0.08301451940942685, 0.10298733555612281, 0.12092975410673945, 0.14068670154732657, 0.1638654139365366, 0.19238995846556517, 0.2286060305569818, 0.278286530521334, 0.3494832113575999, 0.46327009539889163, 0.6741543770037493, 1.2046051551087025, 48.31165708800447, 0.0, 0.0, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.0, 0.0, 0.0008391934, 0.00110557, 0.001225835, 0.001330358, 0.001435987, 0.001550457, 0.001679782, 0.001831057, 0.002018519, 0.002262148, 0.00260668, 0.003142754, 0.004200865, 0.02661462, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0008391934, 0.00110557, 0.001225835, 0.001330358, 0.001435987, 0.001550457, 0.001679782, 0.001831057, 0.002018519, 0.002262148, 0.00260668, 0.003142754, 0.004200865, 0.02661462, 0.0, 0.0, 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, 1.0, 1.0, 1.0043861486639383, 1.0046291780647527, 0.9954185527382654, 0.9984249582928769, 0.9998432000668225, 1.0007137680885918, 1.000446693305816, 1.000417065098871, 0.99870770569906, 0.9987727790197666, 1.0004361050637378, 0.9993140375104685, 0.9992402348019775, 1.0000400650684023, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 1.0, 1.0, 0.08456310930622457, 0.08454640751883054, 0.08453499550147718, 0.08453302800751741, 0.08452768985618567, 0.08452643144135034, 0.08452505802092529, 0.08452355138469538, 0.0845233023071238, 0.08452030404859054, 0.08451943568502489, 0.08451785821993639, 0.08451709546042384, 0.08451544587783927, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.08456310930622457, 0.08454640751883054, 0.08453499550147718, 0.08453302800751741, 0.08452768985618567, 0.08452643144135034, 0.08452505802092529, 0.08452355138469538, 0.0845233023071238, 0.08452030404859054, 0.08451943568502489, 0.08451785821993639, 0.08451709546042384, 0.08451544587783927, 1.0, 1.0, 1.0], ], '_alpha0.yoda' : [ [1.0, 1.0, 1.0, 0.001483015751713853, 0.0011259713653173197, 0.0010062009629726021, 0.0009299546741388558, 0.0008627728309678396, 0.0007997697266612821, 0.0007379993849206991, 0.0006770050643490317, 0.0006130799479588673, 0.0005470861848275539, 0.0004755651720229032, 0.00039400298515107136, 0.00029473965532657417, 4.65590834955599e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.001483015751713853, 0.0011259713653173197, 0.0010062009629726021, 0.0009299546741388558, 0.0008627728309678396, 0.0007997697266612821, 0.0007379993849206991, 0.0006770050643490317, 0.0006130799479588673, 0.0005470861848275539, 0.0004755651720229032, 0.00039400298515107136, 0.00029473965532657417, 4.65590834955599e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }