本文主要是介绍TensorFlow画图之plt.subplot,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
简易网格子图
import matplotlib.pyplot as plt
from numpy import
fig = plt.figure()
ax = fig.add_subplot(3,4,9)
ax.plot(x,y)
plt.show()
参数349的意思是:将画布分割成3行4列,图像画在从左到右从上到下的第9块,如下图
这篇关于TensorFlow画图之plt.subplot的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!