mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 11:01:09 +00:00
commit
0be1e350e9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user