Skip to main content
1 of 2
samcarter
  • 508
  • 5
  • 11

I think the hatched lines could be simplified a bit. Instead of drawing two lines and then all the tiny lines in the for-loop, you could draw a double line and fill it with a hatched pattern:

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{patterns,patterns.meta}

\begin{document}
\begin{tikzpicture}

\draw[gray,double distance=0.25cm] (3,-1.625)--++(5,0);
\fill[pattern={Lines[angle=45,distance={5pt}]},pattern color=gray] (3,-1.5) rectangle ++(5,-0.25);

\end{tikzpicture}
\end{document}
samcarter
  • 508
  • 5
  • 11