Il seguente codice genera una figura attraverso il pacchetto
tikz che rappresenta le convenzioni di segno per un sistema meccanico:

\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{%
decorations.pathmorphing%
}
\begin{document}
\begin{tikzpicture}[%
molla/.style={decorate,decoration={snake,post length=5,amplitude=5,pre length=5,segment length=5}, thick},
thick%
]
\draw[<->] (0,1) |- (1,0);
\draw (45:0.6) node {$+$};
\draw[->] (10:1) arc (10:80:1);
\draw[molla,<->] (-0.5,-1) -- node[above=0.2cm] {$+$} (1.5,-1);
\end{tikzpicture}
\end{document}
Nessun commento:
Posta un commento