标签: python matplotlib grid
我想在python上做一个网格。我知道可以使用matplotlib,但是我确实很努力。
matplotlib
我要获取的网格类似于此图上的网格。这意味着8行13列。
答案 0 :(得分:1)
如果没有访问数据以再现图形的权限(没有网格),就不可能为您提供有效的代码。但是,下面是一个有关如何执行此操作的基本示例。这里的技巧是使用主刻度线,其间隔为1,在x轴上的范围为1至13,在y轴上的范围为1至8。然后,您需要使用const mapStateToProps = (state) => ({ user: state.auth.user //Need to change this line like this. }); 打开网格并使用plt.grid()来获得与您想要的网格相似的网格。
const mapStateToProps = (state) => ({ user: state.auth.user //Need to change this line like this. });
plt.grid()
linestyle='dotted'