don't complain if ssh without -X/-Y

This commit is contained in:
Martin Diehl 2020-07-15 21:19:09 +02:00
parent 333e840b09
commit fa7f7e6fa4
1 changed files with 2 additions and 0 deletions

View File

@ -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