Skip to content

Commit

Permalink
add -t option
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Dec 12, 2023
1 parent 78873fc commit 70321b3
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions bin/seq_spectra.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#! /usr/bin/env python
# template script written by NEMO::pytable
#
_version = "1-aug-2023"

_version = "11-dec-2023"

_help = """Usage: seq_spectra.py [options] TABLE [TABLE ...]
Options:
-y PLOTFILE Save plotfile instead of interactive. Optional
-t TITLE Plot title. Optional
-h --help This help
-d --debug Add debugging
-v --version The script version
Multiple tables can be given.
Multiple tables can be given, they are overplotted in different colors.
"""

Expand All @@ -25,7 +26,8 @@
print(av)


plotfile = av['-y']
plotfile = av['-y']
title = av['-t']
tables = av['TABLE']
n = 0

Expand All @@ -47,7 +49,10 @@
#plt.ylim([0,1])
# @todo plot between +/- 5 sigma or so
#plt.ylim([-0.01,0.01])
plt.title('SEQ Bs spectra')
if title == None:
plt.title('Spectra')
else:
plt.title(title)
plt.legend()
if plotfile == None:
plt.show()
Expand Down

0 comments on commit 70321b3

Please sign in to comment.