Legenda matplotlib mendapatkan pegangan

h, l = ax.get_legend_handles_labels()
ax.legend(h, l)
Real Raccoon