Skip to content

Commit

Permalink
fix: 修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nl8590687 committed Dec 17, 2021
1 parent b355817 commit d494c1f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,12 @@ def visual_1D(points_list, frequency=1):
'''
可视化1D数据
'''
# 首先创建绘图网格
# ax will be an array of two Axes objects
# 首先创建绘图网格,1个子图
fig, ax = plt.subplots(1)
x = np.linspace(0, len(points_list)-1, len(points_list)) / frequency

# 在对应对象上调用 plot() 方法
ax[0].plot(x, points_list)
ax.plot(x, points_list)
fig.show()

def visual_2D(img):
Expand Down

0 comments on commit d494c1f

Please sign in to comment.