plt.legend()函数
时间: 2023-09-26 11:10:10 浏览: 71
plt.legend()函数的作用是给图像加上图例。图例是用来说明图中各种符号和颜色所代表的内容和指标的。该函数可以通过设置参数来控制图例的位置、边框和背景颜色等属性。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* *3* [matplotlib.legend函数的用法](https://blog.csdn.net/humingzhu_97/article/details/104899572)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Matplotlib--legend函数](https://blog.csdn.net/chongbaikaishi/article/details/110094561)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文