What you appear to be looking at is
the usual way to evaluate $I=\int_{-\infty}^{\infty} f(x)\;dx$
where $f(x)=e^{-x^2}.$
We show that
$$\begin{eqnarray}
I^2 &=& \left(\int_{-\infty}^{\infty} f(x)\;dx\right)
\left(\int_{-\infty}^{\infty} f(y)\;dy\right)\\
&=& \int_{-\infty}^{\infty}\int_{-\infty}^{\infty} f(x) f(y)\;dx\;dy \\
&=& \int_{-\infty}^{\infty}\int_{-\infty}^{\infty} g(x,y)\;dx\;dy.
\end{eqnarray}$$
That is, instead of doing a single integration of the single-variable
function $f$, we do a double integration of the two-variable function $g$,
where $g(x,y)=e^{-(x^2+y^2)}.$
Then we change variables to polar coordinates in order to put
the integral in a form that's much easier to evaluate.
While we can make a simple and reasonably complete graph of $y = f(x)$
in the $x,y$-plane consisting of one or more simple curves
that pass the "vertical line" test
(at least for reasonable functions $f$ such as the functions one uses for most practical purposes),
we cannot graph a multivariable function $g(x,y)$ that way,
because $g(x,y)$ assigns a value to every point in its domain,
in this case every point in the plane.
There are various other ways of plotting $g(x,y)$, but they involve
different techniques such as three-dimensional visualization,
contour lines, or other techniques to indicate that the function does
not just have a single value for any given $x$, but rather has a value for
every combination of $x$ and $y$.
I am reminded of this question, which is different from yours
but also hinges on the confusion that can occur if one tries to apply
principles of graphing single-variable functions
to a problem concerning a multiple-variable function.
Both single-variable and multiple-variable functions can be related
to the same $x,y$-coordinate plane, but they relate to that plane
in very different ways.