#!/usr/bin/env python
# --*-- coding:utf-8 --*--
import matplotlib.pyplot as plt
x=range(-1000,0)
y=[1.0/e for e in x]
plt.plot(x,y)
x=range(1,1001)
y=[1.0/e for e in x]
plt.plot(x,y)
plt.show()
python绘制双曲线
最新推荐文章于 2024-07-18 21:09:27 发布
#!/usr/bin/env python
# --*-- coding:utf-8 --*--
import matplotlib.pyplot as plt
x=range(-1000,0)
y=[1.0/e for e in x]
plt.plot(x,y)
x=range(1,1001)
y=[1.0/e for e in x]
plt.plot(x,y)
plt.show()