答案1
像这样?
为了获得更完整的图像,您应该向我们展示您迄今为止所尝试的内容......
\documentclass[tikz, margin=3mm]{standalone}
\usetikzlibrary{patterns, quotes}
\usepackage{siunitx}
\begin{document}
\begin{tikzpicture}[
every edge quotes/.append style = {%
font=\footnotesize, anchor=south, sloped}
]
\draw[thick,
pattern=north east lines
]
(0,0) to ["\SI{30}{cm}"] ++ (0,6)
-- ++ (3,-3)
-- cycle;
\end{tikzpicture}
\end{document}