matplotlib横向柱状图
时间: 2023-09-21 16:02:36 浏览: 94
matplotlib中的横向柱状图可以使用`barh()`函数来创建。该函数的参数包括y轴的位置、柱子的宽度、柱子的高度和左边界位置等。调用该函数并传入相应的参数即可生成横向柱状图。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [matplotlib画柱状图](https://blog.csdn.net/kspider/article/details/124242470)[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: 50%"]
- *3* [Python数据可视化利器Matplotlib,如何绘制横向柱形图](https://blog.csdn.net/TH_NUM/article/details/80601800)[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: 50%"]
[ .reference_list ]
阅读全文