glotaran / pyglotaran-examples

This repository hold examples showcasing the use of the pyglotaran package
MIT License
5 stars 7 forks source link

🩹 Fix adding empty pages to PDF #39

Closed s-weigand closed 3 years ago

s-weigand commented 3 years ago

Follow-up PR for #38, where the duplicate plots were removed but empty pages were still added. By using plt.close(fig) the old figures will be removed from plt.get_fignums(), so only the intended plots get added to the summary PDF.