答案1
我通常使用可用linewidth
作为创建绘图的参数。
例子:
\documentclass{article}
\usepackage{tikz}
\newcommand{\drawpicture}{%
\begin{tikzpicture}[x=1cm, y=1cm]
\pgfmathsetmacro{\lw}{\linewidth/1cm}
\begin{scope}[x=\lw cm, y=0.3*\lw cm]
\draw[->] (0,0) -- (1,0) node [below] {$\omega$};
\draw[->] (0.05,-0.25) -- +(0,1) node [left] {$M$};
\draw (0.05,0.5) -- ++(0.5,0) -- ++(0.4,-0.75);
\begin{scope}[yshift=-0.15*\lw cm]
\draw[->] (0,0) -- (1,0) node [below] {$\omega$};
\draw[->] (0.05,-0.5) -- +(0,0.6) node [left] {$\phi$};
\draw (0.05,-0.05) -- ++(0.4,0) -- ++(0.2,-0.5) -- ++(0.3,0);
\end{scope}
\end{scope}
\end{tikzpicture}%
}
\begin{document}
\foreach \x in {0.25,0.5,0.75,1} {%
\begin{minipage}{\x\linewidth}
\drawpicture
\end{minipage}\\
}
\end{document}