I am trying to plot the paraboloid z = x^2+y^2+2 with the following code:
\documentclass[12pt]{article}
\usepackage{pgfplots}
\usetikzlibrary{3d}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[view={135}{10},axis lines = middle]
\addplot3[surf] (x,y,x^2+y^2+2);
\end{axis}
\end{tikzpicture}
\end{document}
However, pgfplot seems to ignore the z-shift by 2:
I tried various things without any success, my paraboloid is stuck at the origin.
Any help will be appreciated

