Skip to content

Commit cb5fe5c

Browse files
author
Enrique Fernandez
committed
Use Agg workaround for running on background
1 parent 0dcd17d commit cb5fe5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bag_tools/scripts/plot.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646

4747
from operator import itemgetter
4848

49+
# Workaround to avoid issues with X11 rendering when running on background:
50+
import matplotlib as mpl
51+
mpl.use('Agg')
52+
4953
import matplotlib.pyplot as plt
5054

5155

0 commit comments

Comments
 (0)