Ever since upgrading matplotlib I get the following error whenever trying to create a legend:
/usr/lib/pymodules/python2.7/matplotlib/legend.py:610: UserWarn
use label while plotting graph then only u can use legend. x axis name and y axis name is different than legend name.