【发布时间】:2012-12-13 17:26:52
【问题描述】:
我正在尝试使用 pyplot 和 matplotlib 绘制双曲线。这是我的代码:
from __future__ import division
import numpy
import matplotlib.pyplot as pyplot
x = numpy.arange(0, 1000, 0.01)
y = [10 / (500.53 - i) for i in x]
pyplot.plot(x, y, 'b')
pyplot.axis([0, 1000, -10, 10])
pyplot.show()
它会生成以下图表:
如何修改我的图表以删除沿垂直渐近线延伸的那条线?
【问题讨论】:
-
也许这个StackOverflow Question 有帮助?
-
啊,我完全错过了这个问题。我要把我的标记为重复。
标签: python matplotlib graphing