SyntaxFix
Write A Post
Hire A Developer
Questions
As of matplotlib 3.3, you can do this with plt.axline((x1, y1), (x2, y2)).
plt.axline((x1, y1), (x2, y2))