[Tex/LaTex] Drawing a curve knowing its parametric equations

tikz-pgf

I want to draw with TikZ a curve, knowing its parametric equations.

The curve is given by:

$\gamma :\left\{
\begin{array}{c}
x=t, \\
y=t^{2}, \\
z=t^{3},%
\end{array}%
\right. t\in \left[ 0,1\right] .$

Which would be the code for this plotting?

Best Answer

You can do it either TikZ or pgfplots way

\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\begin{document}
In TikZ

\begin{tikzpicture}
\draw[domain=0:1,smooth,variable=\t]plot (\t,\t^2,\t^3);
\end{tikzpicture}

In pgfplots

\begin{tikzpicture}
    \begin{axis}[samples y=0]
        \addplot3+[domain=0:1] (x,x^2,x^3);
    \end{axis}
\end{tikzpicture}

\end{document}

enter image description here

The extra option is due to Artificial Line in PGFPlots 3D Parametric Plots?

Related Question