I am trying to draw two planes one above the other and a diagonal above them. Currently, I am even unable to draw the two planes one above the other. Here is what I'm doing
\begin{figure}
\centering
\tikz
% plane
\draw (0,0) -- ++ (45:2.2) -- ++ (3.3,0) -- ++ (225:2.2) -- cycle;
\draw (50,0) -- ++ (45:52.2) -- ++ (3.3,50) -- ++ (225:52.2) -- cycle;
\end{figure}
If I remove the second line it works and draws a plane, but for some reason with the second line it says "command draw undefined" although it doesn't have the same problem on the first line.

{and}around the draw commands work with thetikzpictureenvironment.\tikz{ \draw (0,0) -- ++ (45:2.2) -- ++ (3.3,0) -- ++ (225:2.2) -- cycle; \draw (50,0) -- ++ (45:52.2) -- ++ (3.3,50) -- ++ (225:52.2) -- cycle; }The coordinates50and52.2seem also unusually large. – May 20 '18 at 21:14