From 2d69c119a3470f3ec589bdb435574f3b85f0b9d0 Mon Sep 17 00:00:00 2001 From: Solal Nathan Date: Tue, 27 Apr 2021 16:24:08 +0200 Subject: [PATCH] Do not try to display a figure in CLI mode --- main.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 6bddd0a..955fa95 100644 --- a/main.py +++ b/main.py @@ -481,10 +481,11 @@ def show_full_render( ax_.axis("off") ax_.set_title(title_) fig.canvas.draw() - fig.show() - display.clear_output(wait=True) - display.display(fig) - return fig + fig.savefig("results/fullrender.png") + #fig.show() + #display.clear_output(wait=True) + #display.display(fig) + #return fig ###############################################################################