方法一
复制代码
1
2
3
4
5
6
7
8plt.figure() plt.subplot(221) plt.imshow(img,"gray") plt.subplot(222) plt.imshow(label) plt.title(i) plt.subplot(223) plt.imshow(img_add)
方法二
复制代码
1
2
3f, (ax1, ax2) = plt.subplots(1, 2, figsize=(8, 8)) ax1.imshow(img,"gray") ax2.imshow(label)
最后
以上就是贤惠马里奥最近收集整理的关于matplotlib画多排图的全部内容,更多相关matplotlib画多排图内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复