User Experience: Fix `optimize_kl` minisanity plotting for runs with many parameters

Merged Lukas Platz requested to merge unbreak_optimize_kl_minisanity_plotting into NIFTy_8

Currently, the reduced-Chi² plots produced by optimize_kl become unreadable when reconstructing a model with many parameter keys or when doing many MGVI/GeoVI iterations.

This patch relocates the minisanity plot legend to outside of the graph area and resizes the figure adaptively to make it readable in both named scenarios. Adaptive resizing is also added to the energy history plot.

@mtr: Are you the right maintainer to ask to merge this? Has somebody been assigned to take over @parras position as maintainer?

Cheers, Lukas

Before:

minisanity_history_last

After:

minisanity_history_last

Merge request reports