[英]Jupyter Notebook displaying incorrect graphs
I'm trying to create a square wave that increases in frequency over time but Jupiter does not know how to work with square signals from scipy or numpy.我正在尝试创建一个频率随时间增加的方波,但 Jupiter 不知道如何处理来自 scipy 或 numpy 的方波信号。 Spider does.蜘蛛会。 Why is Jupyter dumb?为什么 Jupyter 是哑巴?
I tried this code我试过这段代码
from scipy import signal
import numpy as np
import matplotlib.pyplot as plt
t = np.linspace(0,1,100, endpoint=True)
plt.plot(t, signal.square(2* np.pi*5*t))
on Jupyter在木星上 and Colab和 Colab and seems ok.似乎还可以。
Please, could you restart kernel and try again?请问,你能重新启动 kernel 再试一次吗?
In case that it doesn't work, please, provide more information.如果它不起作用,请提供更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.