give title to legend box python code example Example: python add legend title # Basic syntax: plt.legend(title="your title")