Answers for "place legend into extra subplot"

1

place legend into extra subplot

handles, labels = ax.get_legend_handles_labels()
fig.legend(handles, labels, loc='upper center')
Posted by: Guest on April-05-2020

Browse Popular Code Answers by Language