Plotting a line in Python

by KonstantinosKK   Last Updated September 17, 2018 21:26 PM

Super simple question but I am unable to find it anywhere.

Assuming I have two points A(2,2) and B(3,4) and I want to draw a line between them.

Is there a simple command to do so? Thank you very much

Edit: I am asking for a simple command to plot an infinite line not just a line between two points. My bad I did not explain it properly.



Related Questions


Matplotlib line width based on axes, not points

Updated April 19, 2017 12:26 PM


Plot 2 curves at the same time update the data :

Updated March 13, 2018 06:26 AM

Incomplete line-plotting

Updated April 24, 2017 11:26 AM