Skip to content

Commit

Permalink
use different backend for screen/plotfile
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Aug 31, 2024
1 parent a6955dd commit 5674eaa
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions bin/stats_wf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

from docopt import docopt

_version = "8-aug-2023"
_version = "31-aug-2024"

_help = """Usage: stats_wf.py [options] FITSFILE
Show some statistics of a waterfall cube.
Options:
-y PLOTFILE Save plotfile instead, else interactive. Optional.
-y PLOTFILE Save as plotfile instead, else interactive. Optional.
-t Plot along time instead of channel
-b BIRDIEFILE Output birdie file. Optional
-d Add more debug
Expand Down Expand Up @@ -88,11 +88,16 @@ def pixels(head):

print("# beam RMS <rms_chan> <rms_time>")

import matplotlib.pyplot as plt
import matplotlib

if plotfile == None:
matplotlib.use('qt5agg')
else:
matplotlib.use('agg')
import matplotlib.pyplot as plt
plt.figure()
# print('mpl backend spectra',matplotlib.get_backend())

plt.figure()


npix = 0
Expand Down

0 comments on commit 5674eaa

Please sign in to comment.