I have my tex code for this figure a square 1-2-3-4 with a dashed line connecting p2 and p3 by a intermediate point p23.
How can we make a (
curved) dashed parabola curve (or just any more smooth curve) connecting p2, p23 and p3? Thank you, please make it a short answer.
\begin{tikzpicture}[scale=1,baseline]
\coordinate (p1) at (0,0);
\coordinate (p2) at (0,1);
\coordinate (p3) at (1,0);
\coordinate (p4) at (1,1);
\coordinate (p23) at (.7,.7);
\draw [-,>=latex,line width=0.5pt] (p2) -- (p1);
\draw [-,>=latex,line width=0.5pt] (p4) -- (p3);
\draw [-,>=latex,line width=0.5pt] (p3) -- (p1);
\draw [-,>=latex,line width=0.5pt] (p4) -- (p2);
\draw [-,>=latex, dashed, line width=0.5pt] (p23) -- (p2);
\draw [-,>=latex, dashed, line width=0.5pt] (p23) -- (p3);
\node at (-0.15,-0.15) {1};
\node at (-0.15,1.15) {3};
\node at (1.15,-0.15) {2};
\node at (1.15,1.15) {4};
\end{tikzpicture}
}
Best Answer
Here are three options.
Adjust the parameters to suit your needs. For more details, read
pgfmanual
section 70.3, pages 753 onwards.