Commit 2e0df20ae7596e39cbc2268ca2698280b6ef1ad7

Authored by Louis Baetens
1 parent 7158b13e
Exists in master

ENH the legend for global stats

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
PCC/statistics_synthesis.py
... ... @@ -319,7 +319,8 @@ def plot_all_metrics_simplified(data_maja, data_sen2cor, data_fmask, out_fig_nam
319 319 custom_lines = [Line2D([0], [0], color=colors[j], lw=4) for j in range(len(all_legend_names))]
320 320 custom_lines.append(Line2D([0], [0], color='w', markerfacecolor = 'r', marker='o'))
321 321 all_legend_names.append('Means')
322   - plt.legend(custom_lines, all_legend_names, bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.)
  322 + #~ plt.legend(custom_lines, all_legend_names, bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.)
  323 + plt.legend(custom_lines, all_legend_names, loc=3, ncol=2)
323 324  
324 325 if len(set(nb_of_scenes_per_chain)) == 0:
325 326 plt.title('Statistics over {} images'.format(nb_of_scenes_per_chain))
... ...