Answers for "matplotlib one legend for all subplots"

1

matplotlib one legend for all subplots

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

Code answers related to "matplotlib one legend for all subplots"

Browse Popular Code Answers by Language