摘要:
plt.cla() # 清除axes,即当前 figure 中的活动的axes,但其他axes保持不变。 plt.clf() # 清除当前 figure 的所有axes,但是不关闭这个 window,所以能继续复用于其他的 plot。 plt.close() # 关闭 window,如果没有指定,则 阅读全文
posted @ 2020-04-05 22:00
小娜子成长记
阅读(5505)
评论(0)
推荐(0)
摘要:
fig,ax = plt.subplots()等价于:fig = plt.figure()ax = fig.add_subplot(1,1,1)fig, ax = plt.subplots(1,3),其中参数1和3分别代表子图的行数和列数,一共有 1x3 个子图像。函数返回一个figure图像和子图 阅读全文
posted @ 2020-04-05 21:54
小娜子成长记
阅读(1340)
评论(0)
推荐(0)
摘要:
ax.legend()作用:在图上标明一个图例,用于说明每条曲线的文字显示 import matplotlib.pyplot as plt import numpy as np x = np.arange(10) fig = plt.figure() ax = plt.subplot(111) fo 阅读全文
posted @ 2020-04-05 21:50
小娜子成长记
阅读(32556)
评论(0)
推荐(0)
摘要:
将训练过程可视化出来 import tensorflow as tf import numpy as np import matplotlib.pyplot as plt # 去掉警告 import warnings warnings.filterwarnings("ignore",".*GUI i 阅读全文
posted @ 2020-04-05 19:44
小娜子成长记
阅读(205)
评论(0)
推荐(0)
浙公网安备 33010602011771号