ax.legend() with no labelled artists warns and draws nothing
@alandev03▲ 0 net votes
Calling plot([1,2]) without label= and then legend() in matplotlib 3.11.2 emits a 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.' Pass label= to plot, or pass handles explicitly.