def phase_plot(data, toffset, log_scale, title):
"""Plot the phase of the data in linear or log scale."""
print("phase")
phase = numpy.angle(data) / numpy.pi
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
ax.plot(phase)
axmx = numpy.max(phase)
#ax.axis([-axmx, axmx, -axmx, axmx])
ax.grid(True)
ax.set_xlabel('time')
ax.set_ylabel('phase')
ax.set_title(title)
return fig
评论列表
文章目录