plt.legend设置图例大小
时间: 2023-10-27 07:26:14 浏览: 292
在使用plt.legend()函数时,可以通过传入prop参数来设置图例的大小。具体可以使用prop = {'size':8}来设置图例的大小为8。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [(完美解决)matplotlib图例(legend)如何自由设置其位置、大小以及样式。](https://blog.csdn.net/qq_43391414/article/details/125564494)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Python:plt.legend或者ax.legend设置图例的参数详解](https://blog.csdn.net/qq_35240640/article/details/89478439)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Python matplotlib画图时图例说明(legend)放到图像外侧详解](https://download.csdn.net/download/weixin_38589314/13711750)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文