matplotlib.axes.Axes.get_legend_handles_labels #
- 轴。get_legend_handles_labels ( legend_handler_map = None ) [来源] #
返回图例的句柄和标签
ax.legend()
相当于h, l = ax.get_legend_handles_labels() ax.legend(h, l)
使用#的示例matplotlib.axes.Axes.get_legend_handles_labels
图例指南