Skip to content

Commit

Permalink
[Street Network] Use non-interactive backend
Browse files Browse the repository at this point in the history
Change to non-interactive backend in matplotlib
to generate .png files
  • Loading branch information
argenos committed Dec 1, 2017
1 parent d9f5619 commit 8f43794
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions factory/delivery.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
import networkx as nx
import json
from utils import location
import os
import matplotlib as mpl
if os.environ.get('DISPLAY', '') == '':
print('no display found. Using non-interactive Agg backend')
mpl.use('Agg')
import matplotlib.pyplot as plt


Expand Down

0 comments on commit 8f43794

Please sign in to comment.