Spaces:
Running
Running
Update functions/PitchPlotFunctions.py
Browse files
functions/PitchPlotFunctions.py
CHANGED
|
@@ -652,9 +652,9 @@ class PitchPlotFunctions:
|
|
| 652 |
# Add legend to ax_legend
|
| 653 |
ncols = min(len(legend_handles), 6)
|
| 654 |
if len(items_in_order) <= 5:
|
| 655 |
-
ax_legend.legend(handles=legend_handles, bbox_to_anchor=(0.1, 0.
|
| 656 |
else:
|
| 657 |
-
ax_legend.legend(handles=legend_handles, bbox_to_anchor=(0.1, 0.
|
| 658 |
|
| 659 |
# Add comparison note below the legend if comparison data is present
|
| 660 |
if compare_df is not None and len(compare_df) > 0 and compare_year is not None:
|
|
|
|
| 652 |
# Add legend to ax_legend
|
| 653 |
ncols = min(len(legend_handles), 6)
|
| 654 |
if len(items_in_order) <= 5:
|
| 655 |
+
ax_legend.legend(handles=legend_handles, bbox_to_anchor=(0.1, 0.0, 0.8, 0.5), ncol=ncols, fancybox=True, loc='upper center', fontsize=10, framealpha=1.0, markerscale=2, prop={'size': 10})
|
| 656 |
else:
|
| 657 |
+
ax_legend.legend(handles=legend_handles, bbox_to_anchor=(0.1, 0.0, 0.8, 0.5), ncol=ncols, fancybox=True, loc='upper center', fontsize=10, framealpha=1.0, markerscale=2, prop={'size': 10})
|
| 658 |
|
| 659 |
# Add comparison note below the legend if comparison data is present
|
| 660 |
if compare_df is not None and len(compare_df) > 0 and compare_year is not None:
|