From 77048fc4982ab6947d7e8eae7e3718dc38bca6ef Mon Sep 17 00:00:00 2001 From: sphemakh Date: Tue, 6 Dec 2016 13:02:31 +0000 Subject: [PATCH] allow maptplotlib to run with display server --- Owlcat/Gainplots.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Owlcat/Gainplots.py b/Owlcat/Gainplots.py index 0df3484..7835c5e 100644 --- a/Owlcat/Gainplots.py +++ b/Owlcat/Gainplots.py @@ -25,7 +25,8 @@ # or write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # - +import matplotlib +matplotlib.use('Agg') import pylab from Timba.Meq import meq from matplotlib.ticker import MultipleLocator, FormatStrFormatter