From fa7f7e6fa433307bd0d1230f0e5c1f065bed16a5 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 15 Jul 2020 21:19:09 +0200 Subject: [PATCH] don't complain if ssh without -X/-Y --- python/damask/_colormap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/damask/_colormap.py b/python/damask/_colormap.py index 9d57f234b..b95253189 100644 --- a/python/damask/_colormap.py +++ b/python/damask/_colormap.py @@ -3,6 +3,8 @@ import functools import numpy as np import matplotlib as mpl +if os.name == 'posix' and 'DISPLAY' not in os.environ: + mpl.use('Agg') import matplotlib.pyplot as plt from matplotlib import cm