From 9954bf5b515f66daecb4eab9743222c99d477dfe Mon Sep 17 00:00:00 2001 From: vmaneagit <79709341+vmaneagit@users.noreply.github.com> Date: Mon, 15 Mar 2021 13:57:29 +0200 Subject: [PATCH] Update stats Updated stats script with lines 40-41 Added: if gui and mpl.get_backend() == 'agg': sys.stderr.write('Error: No GUI backend available and -g specified!\n') --- confluent_client/bin/stats | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_client/bin/stats b/confluent_client/bin/stats index 3bfa61ee..7158e7a7 100755 --- a/confluent_client/bin/stats +++ b/confluent_client/bin/stats @@ -37,6 +37,8 @@ except ImportError: def plot(gui, output, plotdata, bins): import matplotlib as mpl + if gui and mpl.get_backend() == 'agg': + sys.stderr.write('Error: No GUI backend available and -g specified!\n') if not gui: mpl.use('Agg') import matplotlib.pyplot as plt