From c3fea724f50fca77c452bd65e21c094b09074963 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Tue, 3 Oct 2017 09:44:41 -0700 Subject: [PATCH] Update chatchart for matplotlib backend --- chatchart/chatchart.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chatchart/chatchart.py b/chatchart/chatchart.py index 2b4405c..d337892 100644 --- a/chatchart/chatchart.py +++ b/chatchart/chatchart.py @@ -8,7 +8,9 @@ import heapq import os from io import BytesIO import matplotlib +matplotlib.use('agg') import matplotlib.pyplot as plt +plt.switch_backend('agg') from discord.ext import commands