python 添加图例
Adding legend is the best way to label data series plotted on a graph. Matplotlib has an inbuilt defined function for our adding legend operation. The legend can be added to any type of plot such as line plot, dot plot, scatter plot, bar plot, etc. Following are some examples showing the implementation of matplotlib.pyplot.legend().
添加图例是标记图上绘制的数据系列的最佳方法。 Matplotlib有一个内置的定义函数,用于添加图例操作。 可以将图例添加到任何类型的绘图中,例如线图, 点图 ,