Skip to content

Commit 54d815c

Browse files
committed
Merge branch 'develop' into 'main'
Develop See merge request weave/pydv!188
2 parents 0e30412 + f0a7f58 commit 54d815c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pydv/pdv.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@
7070
import numpy
7171

7272
import matplotlib
73-
matplotlib.use('Qt5Agg')
73+
if not os.environ.get('DISPLAY'):
74+
matplotlib.use('Agg')
75+
else:
76+
matplotlib.use('Qt5Agg')
7477
import matplotlib.pyplot as plt
7578
import matplotlib.colors as mclr
7679

0 commit comments

Comments
 (0)