fix: 修复bug

This commit is contained in:
nl 2021-12-17 18:05:05 +08:00
parent b355817482
commit d494c1f3e0
1 changed files with 2 additions and 3 deletions

View File

@ -73,13 +73,12 @@ def visual_1D(points_list, frequency=1):
''' '''
可视化1D数据 可视化1D数据
''' '''
# 首先创建绘图网格 # 首先创建绘图网格1个子图
# ax will be an array of two Axes objects
fig, ax = plt.subplots(1) fig, ax = plt.subplots(1)
x = np.linspace(0, len(points_list)-1, len(points_list)) / frequency x = np.linspace(0, len(points_list)-1, len(points_list)) / frequency
# 在对应对象上调用 plot() 方法 # 在对应对象上调用 plot() 方法
ax[0].plot(x, points_list) ax.plot(x, points_list)
fig.show() fig.show()
def visual_2D(img): def visual_2D(img):