matplotlib - matplotlib表中的方形单元格?
问题描述
我想从数组中的值显示数独网格。
这是我的代码
fig, ax =plt.subplots(1,1)
ax.axis('tight')
ax.axis('off')
ax.table(cellText=sudoku2,loc="center")
plt.show()
这是我的输出 数独网格
如何让单元格成为正方形?我迷路了。
解决方案
推荐阅读
- python - 在 python 中绘制一个函数和一系列不同的常量值参数
- python - 如何在 vtk python 中实现 openvr?
- typescript - 使用打字稿无歧视工会
- vue.js - 传递给插槽的 vue 组件上的单击事件
- c++ - 愚蠢的未来如何实现链式异步回调?
- javascript - 使用单个文本框进行高级搜索
- hibernate - 警告:在 Hibernate 中找不到缓存命名消息的特定 ehcache 配置
- azure-devops - 使用 Rest API 在 Azure DevOps 中创建新用户
- wordpress - 为什么我在尝试访问 localhost/phpmyadmin 时突然收到 Access Forbidden Error 403?
- ruby - 包括来自黄瓜内部 rspec 的共享示例