import numpy as np from numpy import nan add_legend_handle = [ 'alpha2.yoda', '_alpha2.yoda' ] xpoints = { 'alpha2.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], '_alpha2.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 = { 'alpha2.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], '_alpha2.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['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, 2.9560881294964014, 16.89352697841728, 19.075359712230206, 20.781996402877702, 22.212356115107905, 23.398003597122305, 24.335, 25.051510791366905, 25.66910071942443, 25.666456834532408, 25.060449640287768, 24.32618705035971, 23.385665467625905, 22.219388489208622, 20.797571942446048, 19.056654676258983, 16.898703237410086, 2.952933453237409, 0.0], '_alpha2.yoda' : [0.0, 2.953402, 16.89791, 19.0728, 20.78792, 22.23056, 23.39286, 24.33125, 25.04698, 25.65768, 25.66116, 25.0499, 24.3272, 23.40126, 22.22467, 20.78868, 19.07339, 16.89444, 2.953452, 0.0], } xerrs = { 'alpha2.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], ], '_alpha2.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 = { 'alpha2.yoda' : [ [0.0, 0.24984869392620931, 1.427773810674692, 1.6121742756724537, 1.7564128841640194, 1.8773015651744074, 1.977508784219959, 2.0567008783931278, 2.1172556144422723, 2.1694517175128176, 2.1692243161655775, 2.1180087043235916, 2.055953652707084, 1.9764665006435718, 1.8778933647753846, 1.7577301414738975, 1.610592681523523, 1.4282128243153203, 0.2495808685738485, 0.0], [0.0, 0.24984869392620931, 1.427773810674692, 1.6121742756724537, 1.7564128841640194, 1.8773015651744074, 1.977508784219959, 2.0567008783931278, 2.1172556144422723, 2.1694517175128176, 2.1692243161655775, 2.1180087043235916, 2.055953652707084, 1.9764665006435718, 1.8778933647753846, 1.7577301414738975, 1.610592681523523, 1.4282128243153203, 0.2495808685738485, 0.0], ], '_alpha2.yoda' : [ [0.0, 0.001459744, 0.00349166, 0.003709563, 0.003872764, 0.004004891, 0.004108253, 0.004189842, 0.00425102, 0.004302532, 0.004302824, 0.004251267, 0.004189494, 0.00410899, 0.00400436, 0.003872834, 0.00370962, 0.003491302, 0.001459757, 0.0], [0.0, 0.001459744, 0.00349166, 0.003709563, 0.003872764, 0.004004891, 0.004108253, 0.004189842, 0.00425102, 0.004302532, 0.004302824, 0.004251267, 0.004189494, 0.00410899, 0.00400436, 0.003872834, 0.00370962, 0.003491302, 0.001459757, 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, 0.9990913229312758, 1.0002594497637065, 0.9998658105394173, 1.000285035037417, 1.0008195386746799, 0.9997801694020195, 0.9998459009656873, 0.999819140992947, 0.9995550790988252, 0.9997936281362653, 0.9995790322823734, 1.0000416402964507, 1.0006668415057798, 1.0002376982964198, 0.9995724528579271, 1.0008781879099622, 0.9997477180733816, 1.0001756039446206, 1.0], } ratio0_yerrs = { 'alpha2.yoda' : [ [1.0, 0.0845200423604331, 0.08451602868357672, 0.08451606155761272, 0.08451608065531217, 0.0845160934502372, 0.08451613301158611, 0.08451616512813345, 0.08451608496090814, 0.08451607795792943, 0.08451592403853107, 0.08451598972584398, 0.08451606692207371, 0.08451615385415077, 0.084515978722251, 0.08451612266749861, 0.08451602387117921, 0.0845161196247038, 0.08451963870036551, 1.0], [1.0, 0.0845200423604331, 0.08451602868357672, 0.08451606155761272, 0.08451608065531217, 0.0845160934502372, 0.08451613301158611, 0.08451616512813345, 0.08451608496090814, 0.08451607795792943, 0.08451592403853107, 0.08451598972584398, 0.08451606692207371, 0.08451615385415077, 0.084515978722251, 0.08451612266749861, 0.08451602387117921, 0.0845161196247038, 0.08451963870036551, 1.0], ], '_alpha2.yoda' : [ [1.0, 0.000493809364285997, 0.00020668626536429318, 0.00019446883602523133, 0.0001863518751963471, 0.0001803001437238818, 0.0001755813474832216, 0.0001721734949660982, 0.00016969116295632598, 0.00016761522139122583, 0.00016764386404168004, 0.00016964049173186276, 0.00017222156482341324, 0.00017570549812611944, 0.00018021918118695361, 0.00018621567992251444, 0.0001946627077532916, 0.00020660177002641304, 0.0004943413128391413, 1.0], [1.0, 0.000493809364285997, 0.00020668626536429318, 0.00019446883602523133, 0.0001863518751963471, 0.0001803001437238818, 0.0001755813474832216, 0.0001721734949660982, 0.00016969116295632598, 0.00016761522139122583, 0.00016764386404168004, 0.00016964049173186276, 0.00017222156482341324, 0.00017570549812611944, 0.00018021918118695361, 0.00018621567992251444, 0.0001946627077532916, 0.00020660177002641304, 0.0004943413128391413, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }