legend_auto_fit function

Auto-fit Legend to Plot Height