Skip to content

Fix plots to compensate for ling legend labels

Jacob Golomb requested to merge jacob.golomb/gwpopulation_pipe:fix_plots into master

Currently labels for analyses can be long and make plots unruly. This MR i) places the legend centered above the subplots and ii) removes plt.tight_layout() (this was causing the axis sizes to becomes badly distorted when the label in the legend was long).

Example:

Old plots looked like this

Screen_Shot_2024-05-02_at_4.32.50_PM

New plots look like this

Screen_Shot_2024-05-02_at_4.33.33_PM

This seems more organized than forcing new lines at places in the legend depending on the label length.

Edited by Jacob Golomb

Merge request reports