peus-plot: optionally give x-range as 2nd argument

Change-Id: I445ef00487fc34343f5a0333643f61753a1c4948
This commit is contained in:
2025-04-02 14:56:05 +02:00
parent ef985f094c
commit c545e36633
2 changed files with 7 additions and 3 deletions

View File

@ -25,13 +25,16 @@ t_rois = get_modules('roi%d')
i_rois = get_modules('roi%di')
q_rois = get_modules('roi%dq')
maxx = None
if len(sys.argv) > 1:
maxy = float(sys.argv[1])
if len(sys.argv) > 2:
maxx = float(sys.argv[2])
else:
maxy = 0.02
iqplot = Plot(maxy)
iqplot = Plot(maxy, maxx)
for i in range(99):
pass