Add the title parameter to the this line:
legend = plt.legend(handles=[one, two, three], title="title",
loc=4, fontsize="small", fancybox=True)
See also the official docs for the legend constructor.
Add the title parameter to the this line:
legend = plt.legend(handles=[one, two, three], title="title",
loc=4, fontsize="small", fancybox=True)
See also the official docs for the legend constructor.