绘制多个技术图表

绘制多个技术图表

我想知道是否可以使用参数值绘制多个相同的图形。附图中显示的图形。

谢谢

在此处输入图片描述

答案1

以下是部分工作代码(由您完成工作):

\documentclass{article}
\usepackage{tikz}

\begin{document}
    \begin{tikzpicture}
        % first picture
        \draw[line width=1,-latex] (0,0)--(6,0);
        \draw[line width=1,-latex] (0,0)--(0,4) node[left] () {\bfseries $f$(Hz)};
        \draw[line width=3pt] (0,3.5)--(5,1);
        \draw[dashed] (0,3) node[left] () {$f_0$}--(14,3)
                (1,3)--(1,0) node[below] () {$P_1$}
                (3,2)--(3,0) node[below] () {$P'_1$}
                (0,2) node[left] () {$f'_1$}--(14,2);
        \draw[line width=1,-latex] (5.5,3.5)--(5.5,3);
        \draw[line width=1,-latex] (5.5,1.5)--(5.5,2);
        \draw[line width=1pt,latex-latex] (1,.5)--(3,.5) node[midway,above] () {$\Delta P_1$};
        \node at (5.5,2.5) {$\Delta\ f$};
        \node at (2.5,3.8) {$f-f_0=k_{P_1}(P'_1-P_1)$};
        % second picture
        \draw[line width=1,-latex] (8,0)--(14,0);
        \draw[line width=1,-latex] (8,0)--(8,4) node[left] () {\bfseries $f$(Hz)};
        \draw[line width=3pt] (8,3.5)--(13,1.5);
        \draw[dashed] (0,3)--(9,3)
        (9,3)--(9,0) node[below] () {$P_2$}
        (11.8,2)--(11.8,0) node[below] () {$P'_2$}
        (8,2)--(14,2);
        \draw[line width=1pt,latex-latex] (9,.5)--(11.8,.5) node[midway,above] () {$\Delta P_2$};
        \node at (10.5,3.8) {$f-f_0=k_{P_2}(P'_2-P_2)$};
    \end{tikzpicture}
    
    \vspace{1.5 cm}
    
    \begin{tikzpicture}
        % you put here (copy and paste with some corrections the third and the forth picture)
    \end{tikzpicture}

输出:

在此处输入图片描述

相关内容