Почему я не могу отключить предупреждения легенды в Matplotlib?Python

Программы на Python
Anonymous
Почему я не могу отключить предупреждения легенды в Matplotlib?

Сообщение Anonymous »

Кто-нибудь знает, почему это не работает?
plot.py:
355 logging.getLogger('matplotlib.legend').setLevel(logging.ERROR)
356 plt.set_loglevel("error")
357 plt.legend()

Я понимаю:
plot.py:357: UserWarning: No artists with labels found to put in legend.
Note that artists whose label start with an underscore are ignored when
legend() is called with no argument.
plt.legend()

Вернуться в «Python»