Skip to content

Commit 78a68e1

Browse files
linzhiqiulanpa
authored andcommitted
Declare a backend for matplotlib (#171)
This demo doesn't work on my Linux machine because it doesn't declare a backend for matplotlib. With this change it can now work on my server. This seems to be a common issue as described here: matplotlib/matplotlib#3466
1 parent 8d5c9bc commit 78a68e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎examples/matplotlib_demo.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import matplotlib.pyplot as plt
2-
2+
plt.switch_backend('agg')
33

44
fig = plt.figure()
55

0 commit comments

Comments
 (0)