aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorShivesh Mandalia <shivesh.mandalia@outlook.com>2020-02-19 09:40:51 -0600
committerShivesh Mandalia <shivesh.mandalia@outlook.com>2020-02-19 09:40:51 -0600
commit3a5a6c658e45402d413970e8d273a656ed74dcf5 (patch)
treef0ee269d23fa303f0aaf37efe80aad94fe551245 /utils
parentc6f1b522c2bae3ed8415957333189659ddf4d761 (diff)
downloadGolemFlavor-3a5a6c658e45402d413970e8d273a656ed74dcf5.tar.gz
GolemFlavor-3a5a6c658e45402d413970e8d273a656ed74dcf5.zip
add option to not show lvatmo limits in table plot
Diffstat (limited to 'utils')
-rw-r--r--utils/plot.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/utils/plot.py b/utils/plot.py
index 8513317..d19a52e 100644
--- a/utils/plot.py
+++ b/utils/plot.py
@@ -619,7 +619,7 @@ def plot_statistic(data, outfile, outformat, args, scale_param, label=None):
fig.savefig(outfile+'.'+of, bbox_inches='tight', dpi=150)
-def plot_table_sens(data, outfile, outformat, args):
+def plot_table_sens(data, outfile, outformat, args, show_lvatmo=True):
print 'Making TABLE sensitivity plot'
argsc = deepcopy(args)
@@ -726,7 +726,7 @@ def plot_table_sens(data, outfile, outformat, args):
edgecolor=rgb_co[isrc]+[1], label=label)
)
- if itex == len(textures)-1:
+ if itex == len(textures)-1 and show_lvatmo:
LV_lim = np.log10(LV_ATMO_90PC_LIMITS[dim])
ax.add_patch(patches.Rectangle(
(LV_lim[1], ylims[0]), LV_lim[0]-LV_lim[1], np.diff(ylims),
@@ -739,9 +739,10 @@ def plot_table_sens(data, outfile, outformat, args):
ax.tick_params(axis='x', labelsize=16)
purple = [0.5019607843137255, 0.0, 0.5019607843137255]
- legend_elements.append(
- Patch(facecolor='none', hatch='\\\\', edgecolor='k', label='IceCube, Nature.Phy.14,961(2018)')
- )
+ if show_lvatmo:
+ legend_elements.append(
+ Patch(facecolor='none', hatch='\\\\', edgecolor='k', label='IceCube, Nature.Phy.14,961(2018)')
+ )
legend_elements.append(
Patch(facecolor=purple+[0.7], edgecolor=purple+[1], label='Planck Scale Expectation')
)