From 8e7c0ae42ea0b53aa5e97d04d2383785b91ef30c Mon Sep 17 00:00:00 2001
From: Christoph Groth <christoph.groth@cea.fr>
Date: Tue, 3 Sep 2013 09:45:28 +0200
Subject: [PATCH] make tutorial image generation run without DISPLAY set

---
 doc/source/images/_defs.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/doc/source/images/_defs.py b/doc/source/images/_defs.py
index dabed07..42c864b 100644
--- a/doc/source/images/_defs.py
+++ b/doc/source/images/_defs.py
@@ -1,3 +1,9 @@
+################################################################
+# Make matplotlib work without X11
+################################################################
+import matplotlib
+matplotlib.use('Agg')
+
 ################################################################
 # Prepend Kwant's build directory to sys.path
 ################################################################
-- 
GitLab