使用plt.legend的loc参数。
= [x, y]) plt.legend([str1, str2, str3], loc
其中x和y默认是百分比(写成0到1的小数),设定legend的左下角在图中的位置。
使用plt.legend的loc参数。
其中x和y默认是百分比(写成0到1的小数),设定legend的左下角在图中的位置。
Except as otherwise noted, this blog is licensed under CC BY-SA 4.0 License.
©2021-
searchstar
|
pv
|
uv
Theme Tree
by Wu Jun
Powered by Hexo