1

I'm trying to create a figure with three axes and a curve like in the image below enter image description here

However, i cannot see a way to add multivariable functions in the TikZ plot.

  • 1
    Have a look at pgfplots – JPi Aug 11 '17 at 13:08
  • 1
    Welcome to TeX.SX! Could you add your first try: MWE) and the function . – Bobyandbob Aug 11 '17 at 13:13
1

enter image description here

\documentclass{article}


\usepackage{pgfplots}



\begin{document}

\begin{tikzpicture}
\begin{axis}[]
\addplot3[domain=0:720,surf] {sin(x)};
\end{axis}
\end{tikzpicture}
\end{document}

EDIT

In response to OP's comment:

\documentclass{article}


\usepackage{pgfplots}



\begin{document}

\begin{tikzpicture}
\begin{axis}[]
\addplot3[domain=0:1,surf] {sin(720*(x+y)};
\end{axis}
\end{tikzpicture}
\end{document}

If you want a function of three variables then you get a four-dimensional object, which cannot be drawn in three-dimensional space.

enter image description here

  • thank you. However three dimensional, the function still consist of only one variable. I was thinking more in the lines of f(x,y,z) = sqrt(x^2+y^2+z^2) or similar – fluxmodel Aug 11 '17 at 14:26
  • see updated answer – JPi Aug 11 '17 at 14: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.