To avoid having to call plt.savefig() (and import plt), like we do in LIAM2. The default criterion for #620 could then be if fname is None.