Hi,
I tried to insert legends to a matplotlib figure,
u = plt.plot(A, label = 'A')
v = plt.plot(B, label = 'B')
plt.legend([u, v], ['A','B'])
plt.show()
and I see a figure but no legend. I also see this warning message
C:\APPS\Anaconda3\lib\site-packages\matplotlib\legend.py:798: UserWarning: Legend does not support [<matplotlib.lines.Line2D object at 0x000002071BA29FD0>] instances.
A proxy artist may be used instead.
See: http://matplotlib.org/users/legend_guide.html#creating-artists-specifically-for-adding-to-the-legend-aka-proxy-artists
"aka-proxy-artists".format(orig_handle)
C:\APPS\Anaconda3\lib\site-packages\matplotlib\legend.py:798: UserWarning: Legend does not support [<matplotlib.lines.Line2D object at 0x000002071CC539E8>] instances.
A proxy artist may be used instead.
See: http://matplotlib.org/users/legend_guide.html#creating-artists-specifically-for-adding-to-the-legend-aka-proxy-artists
"aka-proxy-artists".format(orig_handle)
Is there any way to show the legend? Thanks!