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

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

| improve this answer | |
  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.