ax.legend([box['boxes'][0], box['boxes'][1], box['boxes'][2], box['boxes'][3]], ['1961-1990', '1971-2000', '1981-2010', '1991-2020'], bbox_to_anchor=(0.05, 1), loc='upper left', ncol=2)