From 1b91e63bb91c5522961a53c64fcad706b42027c8 Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Mon, 4 Nov 2024 21:09:08 +0000 Subject: [PATCH] fix plotting for unity again --- bin/rsr_tsys.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/rsr_tsys.py b/bin/rsr_tsys.py index b123db2..f9d8e1c 100755 --- a/bin/rsr_tsys.py +++ b/bin/rsr_tsys.py @@ -2,7 +2,7 @@ # # inspect and plot the chassis and band (C/B) based Tsys (or with -t the Spectrum) -_version = "1-aug-2023" +_version = "4-nov-2024" _help = """Usage: rsr_tsys.py [options] OBSNUM @@ -12,9 +12,9 @@ -t Show spectrum instead of tsys -r --rms RMS Use this RMS (in K) for Tsys jitter to determine a BADCB [Default: 25.0] -h --help This help - -v --version The script version + -v --version The script version (%s) -""" +""" % _version import sys import numpy as np @@ -59,6 +59,8 @@ import matplotlib if plotfile == None: matplotlib.use('qt5agg') +else: + matplotlib.use('agg') import matplotlib.pyplot as plt print('mpl backend tsys',matplotlib.get_backend())