p1 and p2 are points given by their x and y coordinates. The line must have this left to right direction.

I have no idea how I can do this, I tried using something like

\draw [dashed] plot [smooth, tension=2] coordinates { (-5,0) (-4, 1) (-3,3)};

But it doesn't work for my purposes.

enter image description here

1 Answer 1


Like this?


   \coordinate (A) at (0,0);
   \coordinate (B) at (5,4);
   \draw [dashed,thick] (A) to[out=90,in=180] (B);
   \fill (A) circle [radius=1pt] (B) circle [radius=1pt];


Actually you can use the coordinates directly instead of specifying them first with \coordinate. The in and out options take an angle as value.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .