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