import numpy as np from numpy import nan add_legend_handle = [ 'alpha3.yoda', '_alpha3.yoda' ] xpoints = { 'alpha3.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], '_alpha3.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 = { 'alpha3.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], '_alpha3.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['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, 4.49940287769784, 22.291492805755418, 19.920593525179846, 17.753237410071947, 15.947122302158267, 14.510681654676262, 13.413037769784173, 12.703688848920864, 12.374784172661855, 12.37467266187052, 12.699003597122303, 13.401244604316545, 14.474750000000002, 15.926715827338121, 17.740620503597125, 19.926870503597115, 22.409946043165487, 4.588541366906473, 0.0], '_alpha3.yoda' : [0.0, 4.50033, 22.2934, 19.92044, 17.76117, 15.94532, 14.49559, 13.41264, 12.7079, 12.37726, 12.37892, 12.70045, 13.4006, 14.47738, 15.9291, 17.74686, 19.91883, 22.41148, 4.589613, 0.0], } xerrs = { 'alpha3.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], ], '_alpha3.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 = { 'alpha3.yoda' : [ [0.0, 0.3802807792850285, 1.8839831475860354, 1.6836094513391382, 1.500434373729851, 1.3477892135621201, 1.2263863469029597, 1.1336186975254634, 1.0736688514371888, 1.0458700365372506, 1.0458616855428249, 1.0732734904009573, 1.1326239463203451, 1.2233505693788709, 1.3460627995368881, 1.499367998252096, 1.6841385111427265, 1.8939959111256557, 0.3878157465319231, 0.0], [0.0, 0.3802807792850285, 1.8839831475860354, 1.6836094513391382, 1.500434373729851, 1.3477892135621201, 1.2263863469029597, 1.1336186975254634, 1.0736688514371888, 1.0458700365372506, 1.0458616855428249, 1.0732734904009573, 1.1326239463203451, 1.2233505693788709, 1.3460627995368881, 1.499367998252096, 1.6841385111427265, 1.8939959111256557, 0.3878157465319231, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.001550123, 0.003450104, 0.00326132, 0.003079497, 0.002917834, 0.002782031, 0.002676093, 0.002604839, 0.002570729, 0.002570901, 0.002604075, 0.002674891, 0.002780283, 0.002916349, 0.003078257, 0.003261189, 0.003459229, 0.001565424, 0.0], [0.0, 0.001550123, 0.003450104, 0.00326132, 0.003079497, 0.002917834, 0.002782031, 0.002676093, 0.002604839, 0.002570729, 0.002570901, 0.002604075, 0.002674891, 0.002780283, 0.002916349, 0.003078257, 0.003261189, 0.003459229, 0.001565424, 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.0002060545204243, 1.0000855570446179, 0.9999922931422875, 1.0004468249787248, 0.9998869826088923, 0.9989599623894031, 0.9999703445415572, 1.0003314904142582, 1.0002000703449532, 1.000343228321713, 1.0001138989265288, 0.9999518996678609, 1.0001816957114975, 1.0001496964401027, 1.0003517067738195, 0.9995964994304718, 1.000068449822751, 1.0002335454794535, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 0.08451805486678327, 0.08451579102408124, 0.08451602856165091, 0.08451609918079557, 0.08451613952817755, 0.08451610862179863, 0.08451617873463307, 0.08451630579163574, 0.08451622444032336, 0.08451631118820524, 0.08451635454644409, 0.08451632514457103, 0.0845161795111398, 0.08451603043148284, 0.08451609671420912, 0.08451595602223204, 0.08451586217465618, 0.08451830669522387, 1.0], [1.0, 0.08451805486678327, 0.08451579102408124, 0.08451602856165091, 0.08451609918079557, 0.08451613952817755, 0.08451610862179863, 0.08451617873463307, 0.08451630579163574, 0.08451622444032336, 0.08451631118820524, 0.08451635454644409, 0.08451632514457103, 0.0845161795111398, 0.08451603043148284, 0.08451609671420912, 0.08451595602223204, 0.08451586217465618, 0.08451830669522387, 1.0], ], '_alpha3.yoda' : [ [1.0, 0.00034451749312858475, 0.00015477222768630467, 0.00016371600554359266, 0.00017346115127446607, 0.0001829693122504681, 0.00019172297113302414, 0.00019951431181596237, 0.00020504587533417683, 0.00020773929986425194, 0.00020775507120455742, 0.0002050613640734856, 0.00019960019229396176, 0.00019207813606452614, 0.0001831105063728269, 0.00017351461857694584, 0.00016365786084730684, 0.000154361326588512, 0.0003411593957265303, 1.0], [1.0, 0.00034451749312858475, 0.00015477222768630467, 0.00016371600554359266, 0.00017346115127446607, 0.0001829693122504681, 0.00019172297113302414, 0.00019951431181596237, 0.00020504587533417683, 0.00020773929986425194, 0.00020775507120455742, 0.0002050613640734856, 0.00019960019229396176, 0.00019207813606452614, 0.0001831105063728269, 0.00017351461857694584, 0.00016365786084730684, 0.000154361326588512, 0.0003411593957265303, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }