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.42052134146341463, 0.5870905487804877, 0.6635414634146343, 0.7441030487804875, 0.8440195121951226, 0.9791432926829265, 1.1637335365853654, 1.418957012195123, 1.7967731707317067, 2.3743314024390236, 3.339564024390243, 5.228725609756096, 10.596320121951239, 423.33170731707304, 0.0, 0.0, 0.0], '_alpha3.yoda' : [0.0, 0.0, 0.0, 0.4192217, 0.5896842, 0.6645202, 0.744345, 0.8430178, 0.976596, 1.161625, 1.42225, 1.79485, 2.372629, 3.335847, 5.228169, 10.59793, 423.2963, 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.027155455458417098, 0.0379066784363565, 0.0428431118766672, 0.048042928252618584, 0.05449203670489365, 0.06321596900593007, 0.07513194199283359, 0.09160856368869941, 0.11599786435960996, 0.1532814527193984, 0.21558590600347893, 0.33753235903656337, 0.6840153563579502, 27.32596626801449, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.027155455458417098, 0.0379066784363565, 0.0428431118766672, 0.048042928252618584, 0.05449203670489365, 0.06321596900593007, 0.07513194199283359, 0.09160856368869941, 0.11599786435960996, 0.1532814527193984, 0.21558590600347893, 0.33753235903656337, 0.6840153563579502, 27.32596626801449, 0.0, 0.0, 0.0], ], '_alpha3.yoda' : [ [0.0, 0.0, 0.0, 0.0006165952, 0.0007312873, 0.000776305, 0.0008216094, 0.0008743728, 0.0009410999, 0.001026387, 0.001135707, 0.001275829, 0.001466875, 0.001739327, 0.002177475, 0.003100193, 0.01959298, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0006165952, 0.0007312873, 0.000776305, 0.0008216094, 0.0008743728, 0.0009410999, 0.001026387, 0.001135707, 0.001275829, 0.001466875, 0.001739327, 0.002177475, 0.003100193, 0.01959298, 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, 0.9969094518273629, 1.0044178044168823, 1.0014750194815696, 1.0003251582155308, 0.9988131646476782, 0.9973984474979686, 0.998188127677791, 1.0023207100543396, 0.998929653022967, 0.9992829971261489, 0.998886973160839, 0.999893547721254, 1.0001519280306967, 0.9999163603470729, 1.0, 1.0, 1.0], } ratio0_yerrs = { 'alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.06457568922403817, 0.06456700506437509, 0.06456734693894384, 0.06456488564501418, 0.06456253192911497, 0.06456253081478355, 0.06456112127977873, 0.06456049260222563, 0.06455899177989824, 0.06455773299461927, 0.06455510492656055, 0.06455346564883296, 0.06455216041849758, 0.06454977455196262, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.06457568922403817, 0.06456700506437509, 0.06456734693894384, 0.06456488564501418, 0.06456253192911497, 0.06456253081478355, 0.06456112127977873, 0.06456049260222563, 0.06455899177989824, 0.06455773299461927, 0.06455510492656055, 0.06455346564883296, 0.06455216041849758, 0.06454977455196262, 1.0, 1.0, 1.0], ], '_alpha3.yoda' : [ [1.0, 1.0, 1.0, 0.001466263752165938, 0.001245612455385357, 0.0011699419596253656, 0.00110416077631524, 0.001035962779729979, 0.0009611462459404846, 0.0008819776759305497, 0.0008003815409763993, 0.0007100668135424347, 0.0006178055003160713, 0.0005208245709011601, 0.0004164446870069306, 0.0002925726067465316, 4.62828076927509e-05, 1.0, 1.0, 1.0], [1.0, 1.0, 1.0, 0.001466263752165938, 0.001245612455385357, 0.0011699419596253656, 0.00110416077631524, 0.001035962779729979, 0.0009611462459404846, 0.0008819776759305497, 0.0008003815409763993, 0.0007100668135424347, 0.0006178055003160713, 0.0005208245709011601, 0.0004164446870069306, 0.0002925726067465316, 4.62828076927509e-05, 1.0, 1.0, 1.0], ], } ratio0_variation_vals = { } ratio_band_edges = { }