I am new to Python. I borrowed this code from an example, and put in my own numbers:
import matplotlib.pyplot as plt
plt.plot(1, 9, 'rs', 2, 8, 'bs', 7, 3, 'g^', 9, 1, 'r^')
plt.title('Chart of 4 companies')
plt.axis([0, 12, 0, 12])
plt.grid(True)
plt.show()
This works great, it shows me a chart, and it shows 4 points on the chart. But is it possible to show the line going from point [0,0] to these lines? I wanted to make a point about cosine similarity, but I am failing badly.
