python - matplotlib.table 中的多行或多列有一个标签
问题描述
我们如何将单个标签分配给 matplotlib.table 中的多行或多列
例如,我有以下代码,其中allInfo
是 pandas DataFrame。
the_table=plt.table(cellText=allInfo.values,
colLabels=allInfo.columns,
rowLabels=allInfo.index,
loc='right',
cellLoc='left')
解决方案
推荐阅读
- function - 已弃用:函数 create_function() 已弃用 PHP 7.2
- php - orderID 不是自动递增的,我的 orderID 始终相同
- filter - 隔离 connected_components
- c# - 用于 C# 的 SqlBuilder() 在 Where 条件下比较日期时间
- python - 根据当前列中的值在 Pandas 中的 np.where 上创建条件
- visual-studio-2017 - 我需要ODTforVS2017_122011.exe吗?
- java - 使用 Java 从队列中删除 var
- maven - Maven surefire 插件不运行我们的单元测试用例
- javascript - Javascript在加载时播放音频
- ruby - mruby 相当于 begin ... end until