答案1
这里有一些开始。Spring 的代码取自这@JohnD 的问题,例如回答@user11232 的。
\documentclass[border=1cm]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing,patterns}
\usetikzlibrary{calc,patterns,decorations.markings}
\usetikzlibrary{positioning,snakes}
\begin{document}
\begin{tikzpicture}[every node/.style={draw,outer sep=0pt,inner sep=0pt,thick}]
\tikzstyle{spring}=[thick,decorate,decoration={aspect=0.5, segment length=1mm, amplitude=2mm,coil}]
\draw[thick] (0,0) --(0,3);
\draw[thick] (0,0) --(3,0) node[draw=none,xshift=5pt]{\tiny $x$};
\node at(0,0.25) (a) [draw=none] {};
\node at (2,0.25)(b) [minimum size=0.5cm,label=$\rightarrow$] {m};
\draw [spring] (a) -- (b) node[draw=none,pos=.5,right=.25cm] {};
\node at (2,-1)(c) [draw=none,yshift=5pt] {\tiny $x=0$};
\draw[dashed] (b.south) -- (c.north);
\end{tikzpicture}
\end{document}