Spec-Zone.ru › Matplotlib 3.7

matplotlib.axes.Axes.get_legend_handles_labels

Axes.get_legend_handles_labels(legend_handler_map=None)[source]

Возвращает маркеры и метки для легенды

ax.legend() эквивалентно

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

Примеры использования matplotlib.axes.Axes.get_legend_handles_labels

Руководство по легендам

Руководство по легендам

© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.7.5/api/_as_gen/matplotlib.axes.Axes.get_legend_handles_labels.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API