Two examples of what you can draw with the 3d library. The first on has been modified because something was wrong with shade colour.
\documentclass[]{article}
\usepackage{tikz}
\usetikzlibrary{3d}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{5pt}%
\begin{document}
\begin{tikzpicture}
[x={(-0.2cm,-0.4cm)}, y={(1cm,0cm)}, z={(0cm,1cm)},
scale=3,
fill opacity=0.80,
color={gray},bottom color=white,top color=black]
\tikzset{zxplane/.style={canvas is zx plane at y=#1,very thin}}
\tikzset{yxplane/.style={canvas is yx plane at z=#1,very thin}}
\begin{scope}[yxplane=-1]
\shade[draw] (-1,-1) rectangle (1,1);
\draw (0,0) circle[radius=1cm] ;
\end{scope}
\begin{scope}[zxplane=-1]
\shade[draw] (-1,-1) rectangle (1,1);
\end{scope}
\begin{scope}[zxplane=1]
\shade[draw] (-1,-1) rectangle (1,1);
\end{scope}
\begin{scope}[yxplane=1]
\shade[draw] (-1,-1) rectangle (1,1);
\end{scope}
\end{tikzpicture}
\begin{tikzpicture}[scale=4]
\begin{scope}[canvas is zy plane at x=0]
\draw (0,0) circle (1cm);
\draw (-1,0) -- (1,0) (0,-1) -- (0,1);
\end{scope}
\begin{scope}[canvas is zx plane at y=0]
\draw (0,0) circle (1cm);
\draw (-1,0) -- (1,0) (0,-1) -- (0,1);
\end{scope}
\begin{scope}[canvas is xy plane at z=0]
\draw (0,0) circle (1cm);
\draw (-1,0) -- (1,0) (0,-1) -- (0,1);
\end{scope}
\end{tikzpicture}
\end{document}
Best Answer
You cannot simply use
rectangle
, which will not produce the expected output. But you can draw the plane "manually" like so: