I am trying to make a diagram of a mobile network. For this purpose I have created a base station/cell tower drawing in tikz.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{intersections}
\begin{document}
\begin{tikzpicture}
\foreach \x in {-0.75, -0.25, 0.25, 0.75} {
\draw[thick] (\x,0) -- (\x,0.5);
}
\draw[thick] (-0.75,0) -- (0.75,0);
\path[name path=left, draw, thick] (-0.75, -3) -- (-0.0625, 0);
\path[name path=right, draw, thick] (0.75, -3) -- (0.0625, 0);
\path[name path=int1] (-1, -0.625) -- (1, -0.625);
\path[name path=int2] (-1, -1.5) -- (1, -1.5);
\path[name path=int3] (-1, -2.5) -- (1, -2.5);
\path[name intersections={of=int1 and left,by=li1}];
\path[name intersections={of=int2 and left,by=li2}];
\path[name intersections={of=int3 and left,by=li3}];
\path[name intersections={of=int1 and right,by=ri1}];
\path[name intersections={of=int2 and right,by=ri2}];
\path[name intersections={of=int3 and right,by=ri3}];
\draw (li1) -- (ri1);
\draw (li2) -- (ri2);
\draw (li3) -- (ri3);
\draw (li1) -- (ri2);
\draw (li2) -- (ri1);
\draw (li2) -- (ri3);
\draw (li3) -- (ri2);
\end{tikzpicture}
\end{document}
Is there a way to use a tikz picture as a shape for a node so I can place it easily in a bigger diagram?
tikzpicture
inside a node in anothertikzpicture
using\node {\begin{tikzpicture} ... \end{tikzpicture}};