2

I know of e.g. this or similar, but is there an option to draw a turned parabola just using the path operation?

\documentclass[tikz,border=2mm]{standalone}

\begin{document}
\begin{tikzpicture}
  \draw (0,-1) parabola bend (1,0) (0,1);
\end{tikzpicture}
\end{document}

produces: enter image description here

Skillmon
  • 60,462

1 Answers1

2

Use rotate !

\documentclass[tikz,border=2mm]{standalone}
\begin{document}
  \begin{tikzpicture}
    \draw[rotate=90] (-1,1) parabola bend (0,0) (1,1);
  \end{tikzpicture}
\end{document}

enter image description here

Kpym
  • 23,002
  • At first I was unsure about rotate because I have to match precise positioning of the end points and rotate seemed to break that, but I managed to get it working in my specific case. Thanks. – Skillmon May 11 '18 at 20:35
  • You can use a Bézier curve also \draw[red,scale=1/3] (3,-3) .. controls (-1,-1) and (-1,1) .. (3,3);. Check this answer of mine. – Kpym May 11 '18 at 20:38