import numpy as np from numpy import nan add_legend_handle = [ 'alpha0.yoda', '_alpha0.yoda' ] xpoints = { 'alpha0.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], '_alpha0.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 = { 'alpha0.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], '_alpha0.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['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, 2.910793165467625, 16.77002158273383, 19.02383093525179, 20.8489928057554, 22.375377697841717, 23.670251798561154, 24.76980215827338, 25.70539568345324, 26.67008992805752, 26.670179856115144, 25.69724820143885, 24.774802158273378, 23.682482014388494, 22.368741007194235, 20.83787769784173, 19.0363489208633, 16.762868705035984, 2.9145125899280564, 0.0], '_alpha0.yoda' : [0.0, 2.912625, 16.76556, 19.02746, 20.84463, 22.38192, 23.68425, 24.7707, 25.69726, 26.6647, 26.65704, 25.69178, 24.77204, 23.6803, 22.38635, 20.84224, 19.03258, 16.76763, 2.911686, 0.0], } xerrs = { 'alpha0.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], ], '_alpha0.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 = { 'alpha0.yoda' : [ [0.0, 0.2460185129010139, 1.4173377396757265, 1.6078199158285416, 1.7620742344997251, 1.8910790737416898, 2.0005175046015147, 2.093446375435906, 2.1725159558415705, 2.2540485116388402, 2.254059992541619, 2.171830919281972, 2.0938697212097743, 2.0015496881627914, 1.8905179236842031, 1.7611348787871057, 1.6088770390699327, 1.416733137532348, 0.24633637447349901, 0.0], [0.0, 0.2460185129010139, 1.4173377396757265, 1.6078199158285416, 1.7620742344997251, 1.8910790737416898, 2.0005175046015147, 2.093446375435906, 2.1725159558415705, 2.2540485116388402, 2.254059992541619, 2.171830919281972, 2.0938697212097743, 2.0015496881627914, 1.8905179236842031, 1.7611348787871057, 1.6088770390699327, 1.416733137532348, 0.24633637447349901, 0.0], ], '_alpha0.yoda' : [ [0.0, 0.001459135, 0.003500759, 0.003729439, 0.003903465, 0.004044844, 0.004160859, 0.004255223, 0.004334077, 0.00441491, 0.004414276, 0.004333616, 0.004255338, 0.004160512, 0.004045244, 0.00390324, 0.003729941, 0.003500975, 0.0014589, 0.0], [0.0, 0.001459135, 0.003500759, 0.003729439, 0.003903465, 0.004044844, 0.004160859, 0.004255223, 0.004334077, 0.00441491, 0.004414276, 0.004333616, 0.004255338, 0.004160512, 0.004045244, 0.00390324, 0.003729941, 0.003500975, 0.0014589, 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.0006293248706597, 0.999733954860355, 1.000190764140018, 0.9997907426130341, 1.0002923884569295, 1.0005913837147984, 1.0000362474322921, 0.999683502889688, 0.9997979036414177, 0.9995073203035737, 0.9997872067313985, 0.999888509371105, 0.9999078637793467, 1.0007872143005323, 1.0002093448393126, 0.9998020145102945, 1.000284038194643, 0.999030167192338, 1.0], } ratio0_yerrs = { 'alpha0.yoda' : [ [1.0, 0.08451940722538097, 0.08451615477555478, 0.08451609569601451, 0.08451603638202136, 0.08451607384147529, 0.08451610576965304, 0.08451607170938476, 0.08451595075970901, 0.08451596967686005, 0.08451611517815807, 0.08451608912585301, 0.0845161026042963, 0.08451604383977714, 0.0845160629771776, 0.08451603874081257, 0.08451605114816156, 0.08451615069362954, 0.08452060743356739, 1.0], [1.0, 0.08451940722538097, 0.08451615477555478, 0.08451609569601451, 0.08451603638202136, 0.08451607384147529, 0.08451610576965304, 0.08451607170938476, 0.08451595075970901, 0.08451596967686005, 0.08451611517815807, 0.08451608912585301, 0.0845161026042963, 0.08451604383977714, 0.0845160629771776, 0.08451603874081257, 0.08451605114816156, 0.08451615069362954, 0.08452060743356739, 1.0], ], '_alpha0.yoda' : [ [1.0, 0.0005012843294090898, 0.0002087510133919166, 0.00019604037760287418, 0.00018722559100900268, 0.00018077209934159712, 0.0001757843150723444, 0.00017179075443599011, 0.00016860572983865325, 0.00016553787452195344, 0.00016551354448357276, 0.00016864124773318534, 0.00017176072578964908, 0.00017567888355081386, 0.00018084361559280286, 0.00018731466114729504, 0.00019593783532261748, 0.00020885297508464168, 0.0005005639725289408, 1.0], [1.0, 0.0005012843294090898, 0.0002087510133919166, 0.00019604037760287418, 0.00018722559100900268, 0.00018077209934159712, 0.0001757843150723444, 0.00017179075443599011, 0.00016860572983865325, 0.00016553787452195344, 0.00016551354448357276, 0.00016864124773318534, 0.00017176072578964908, 0.00017567888355081386, 0.00018084361559280286, 0.00018731466114729504, 0.00019593783532261748, 0.00020885297508464168, 0.0005005639725289408, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }