plt同时画多个子图

Posted happy_fan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了plt同时画多个子图相关的知识,希望对你有一定的参考价值。

参考

for i in range(7):
    plt.figure(i,figsize=(10,10))
    plt.subplot(1,3,1)
    plt.imshow(teacher_mid[i][0], interpolation=‘bicubic‘)
    plt.subplot(1,3,2)
    plt.imshow(student_mid[i][0], interpolation=‘bicubic‘)
    plt.subplot(1,3,3)
    plt.imshow(at_student_mid[i][0], interpolation=‘bicubic‘)
    plt.show()

以上是关于plt同时画多个子图的主要内容,如果未能解决你的问题,请参考以下文章