I'm attempting to draw a hyperbola using pyplot and matplotlib. This is my code:
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()
It produces the following graph:
How can I modify my graph to remove that line running down the vertical asymptote?