# tikz: draw arc between two specific points

How can I draw between two specific coordinates? Cord are (1,0) and (5,0)

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,shapes,positioning,intersections,quotes}
\usetikzlibrary{positioning} % <---

\begin{document}
\begin{tikzpicture}
%\path[name path=t] (1,0) to[out=90,in=180] (2,1) to[out=0,in=90] (3,0); % top arc
\draw[blue] (0,0)--++(0,1);
\draw[red] (0,1)--++(6,0);
\draw[yellow] (6,1)--(6,0);
\draw[green] (0,0)--(1,0);
\draw[orange] (6,0)--++(-1,0);
\draw[magenta] (1,0) arc
[
start angle=160,
end angle=20,
] ;
\end{tikzpicture}
\end{document}


• Is what you want different from what you get? (then, what do you want?) May 17 at 15:11
• An arc betwenn (0,1) and (5,0) coordinates May 17 at 15:14
• stackoverflow.com/a/198137/2907484 may help. If you need exactly an ellipse with the given radiuses; otherways you can just (0,1) to [bend left] (5,0) May 17 at 15:28

Here are some different arcs:

\documentclass[tikz, border=1cm]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[yshift=0cm]  (1,0) to [bend right=45] (5,0);
\draw[yshift=2cm]  (1,0) to [bend left=45] (5,0);
\draw[yshift=4cm]  (1,0) to [out=135, in=45] (5,0);
\draw[yshift=6cm]  (1,0) to [out=135, in=45, looseness=2] (5,0);
\end{tikzpicture}
\end{document}


• Add an example with OP's MWE to make the answer complete. May 17 at 15:49
• @antshar: I can not do that, as I do not understand what OPs code has to do with the question. May 17 at 15:57
• Clearly, they want to connect ends of a polyline with an arc (magenta) imgur.com/EAGAmEl May 17 at 16:03
• @antshar I disagree on the word "clearly". May 17 at 19:57
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,shapes,positioning,intersections,quotes,patterns,positioning} % <---
\begin{document}
\begin{tikzpicture}
\draw[gray,pattern=dots, pattern color=gray,] (0,0)--++(0,1)
to (0,1)--++(12,0)
to (12,1)--(12,0)
to (12,0)--(11,0)
to (11,0) to [bend left=-15] (1,0)
to (1,0) to (0,0);
\end{tikzpicture}
\end{document}


• Do not use the answer section to ask a new question. Please delete this "answer". TikZ will rotate around (0,0) if nothing else is given. You can specify the point to rotate around with rotate around={180:(6,5)} - choose the coordinates to be above the center of your shape. May 17 at 19:10