I would like to save my figures to disk without rendering them on the screen and without having to change my rendering backend.
I tried the instructions in here, namely avoiding calling fig.show()
nor fig.draw()
and just calling fig.savefig
, but I noticed that the mere statement fig = plt.figure()
already opens a figure on the screen.
How can I save a figure to disk without having to render it, and without having to change my backend?