Do not try to display a figure in CLI mode

This commit is contained in:
otthorn 2021-04-27 16:24:08 +02:00
parent 0de01efbcb
commit 2d69c119a3

View file

@ -481,10 +481,11 @@ def show_full_render(
ax_.axis("off") ax_.axis("off")
ax_.set_title(title_) ax_.set_title(title_)
fig.canvas.draw() fig.canvas.draw()
fig.show() fig.savefig("results/fullrender.png")
display.clear_output(wait=True) #fig.show()
display.display(fig) #display.clear_output(wait=True)
return fig #display.display(fig)
#return fig
############################################################################### ###############################################################################