I have this code to plot multiple lines(Fig1). How can I find the intersection points of these lines?
import matplotlib.pylab as pyl
import numpy as np
import math
x = [200, 300, 300, 200,200]
y = [150, 150, 100, 100,140]
x1 = [100, 400]
y1 = [50, 250]
pyl.plot(x, y, 'r')
pyl.plot(x1, y1, 'c')
pyl.xlim(0, 480)
pyl.ylim(0, 320)
pyl.grid(True)
pyl.show()