Q:

3D plotting y = x^2

I know I ask a lot of questions here, but I'm still learning and searching for answers on google, but I can't seem to find out how to do what I'm looking for; this is what I want to do: I would like to 3d plot the function y = x^2
This is the code I'm using:
\documentclass[11pt, oneside]{article}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.14}

\begin{document}

\begin{tikzpicture}
    \begin{axis}[
        view/h=135,
      axis lines=center,
      xlabel={$x$},
      ylabel={$y$},
      zlabel={$z$},
      ]

        \addplot3 [
            surf,
            shader=interp,
        ] {x^2};
    \end{axis}
\end{tikzpicture}

\end{document}

This is the output I'm getting:

This is sorta what I'm looking for (taken from my notes):

A:

I guess you need to make use of the alternative expression for \addplot3 which comes in the format \addplot3({x},{y},{z}). You also need to add the option z buffer=sort.
(See the PGFPlots Manual at page 128.)
\documentclass[11pt, oneside]{article}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.14}

\begin{document}

\begin{tikzpicture}
    \begin{axis}[
      view/h=135,
      axis lines=center,
      xlabel={$x$},
      ylabel={$y$},
      zlabel={$z$},
      ]
        \addplot3 [
            surf,
            shader=interp,
            z buffer=sort,
        ] (x,x^2,y) ;
    \end{axis}
\end{tikzpicture}

\end{document}

This yields: 

