Browse Source

[#37192] graph: Added catching missing plotext module

Signed-off-by: Grzegorz Latosinski <glatosinski@antmicro.com>
check-vt100
Grzegorz Latosinski 4 years ago
parent
commit
e807c0f1ad
  1. 6
      graph.py

6
graph.py

@ -351,7 +351,11 @@ def create_ascii_plot(
canvas_color='black',
axes_color='black',
ticks_color='white'):
import plotext
try:
import plotext
except ImportError:
print('Could not import plotext - please install the module')
return
plotext.clear_figure()
start = 1 if skipfirst else 0
xdata = xdata[start:]

Loading…
Cancel
Save