python - 如何使用 Matplotlib 在 Python 中沿无花果添加扩展箭头
问题描述
我正在使用 Matplotlib 绘制带有 4 个水平平行子图的无花果。无花果已成功绘制为:
我想添加一个表示扩展的双向箭头。具体来说,我想添加一个这样的箭头:
我使用以下代码绘制原始图:
fig = plt.figure(figsize = (12,4))
ax1 = fig.add_subplot(141)
PlotDimension(ax1, OCCdf, 'gender')
ax2 = fig.add_subplot(142)
PlotDimension(ax2, OCCdf, 'race')
ax3 = fig.add_subplot(143)
PlotDimension(ax3, OCCdf, 'class')
plt.show()
解决方案
推荐阅读
- javascript - 在新选项卡中打开本地链接
- node.js - Socket IO 跨子域握手失败
- windows - 批处理脚本 - 通过注册表命令 (reg add) 添加新路径不会将其添加到路径
- flutter - 如何为自定义列表视图菜单添加 onTap 方法
- php - 在 Laravel/Cyber-duck excel 中获取 Excel 文件的特定单元格值
- c++ - Boost Log : 文件轮换
- arrays - 将两个公式合并为一个
- kubernetes - 自定义资源规范值返回 null
- amazon-web-services - 如何使用 Boto 3 获取每个 EC2 运行状况事件所属的实例 ID
- python - 为什么我的准确率趋于零,而我的损失却呈下降趋势?