Do not try to display a figure in CLI mode
This commit is contained in:
parent
0de01efbcb
commit
2d69c119a3
1 changed files with 5 additions and 4 deletions
9
main.py
9
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
|
||||
|
||||
|
||||
###############################################################################
|
||||
|
|
Loading…
Reference in a new issue