2 初等函数总bode图

2 初等函数总bode图

有人知道如何在 bodegraph 上绘制总传递函数吗?我已经成功地正确打印了前两个基本函数:jwT1/(1+jwT),但我找不到如何绘制总和。这两个 bodegraph 的总和。

\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage{pgf}
\usepackage{tikz}
\usepackage{bodegraph} % per i diagrammi di Bode

\begin{document}
            \begin{tikzpicture}[xscale=7/4]
                [xscale=16.9/6]
                \begin{scope}[yscale=7/120]
                \tikzset{
                    semilog lines/.style={thin, black},
                    semilog lines 2/.style={semilog lines,
                        gray },
                    semilog half lines/.style={semilog lines 2,
                        dotted },
                    semilog label x/.style={semilog lines,
                        below,font=\tiny},
                    semilog label y/.style={semilog lines,
                        above right,font=\tiny}
                }

                \UnitedB
                \semilog{1}{7}{-60}{60}
                %% quella più sotto, sarà quella più visibile essendo sopra
                \BodeGraph[orange %thin
                ]{1:7}
                {-\POAmp{1}{0.00002209}}
                \BodeGraph[orange, thin]{1:7}
                {-\POAmpAsymp{1}{0.00002209}}
                \BodeGraph[LBlue1 %thin
                ]{1:6}
                {\POAmp{1}{0.00094}}
                \BodeGraph[LBlue1, thin]{1:6}
                {\POAmpAsymp{1}{0.00094}}
                \end{scope}
                \begin{scope}[yshift=-7cm,yscale=4/180]
                \tikzset{
                    semilog lines/.style={thin, black},
                    semilog lines 2/.style={semilog lines,
                        gray },
                    semilog half lines/.style={semilog lines 2,
                        dotted },
                    semilog label x/.style={semilog lines,
                        below,font=\tiny},
                    semilog label y/.style={semilog lines,
                        above right,font=\tiny}
                }
                \UniteDegre
                \OrdBode{30}
                \semilog{1}{7}{-90}{90}
                \BodeGraph[orange]{1:7}
                {-\POArg{1}{0.000022091}}
                \BodeGraph[%samples=2,
                LBlue1 ]
                {1:7}{\POArg{1}{0.00094}}

                \end{scope}
            \end{tikzpicture}    
\end{document}

这给了我这个,在此处输入图片描述,并且它是正确的,但我需要这两个伯德图的“总和”。

我从哪说起呢??

答案1

你只需要将 Bodegraph 中的两个绘图命令相加

在此处输入图片描述

\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage{pgf}
\usepackage{tikz}
\usepackage{bodegraph} % per i diagrammi di Bode

\begin{document}
            \begin{tikzpicture}[xscale=7/4]
                [xscale=16.9/6]
                \begin{scope}[yscale=7/120]
                \tikzset{
                    semilog lines/.style={thin, black},
                    semilog lines 2/.style={semilog lines,
                        gray },
                    semilog half lines/.style={semilog lines 2,
                        dotted },
                    semilog label x/.style={semilog lines,
                        below,font=\tiny},
                    semilog label y/.style={semilog lines,
                        above right,font=\tiny}
                }

                \UnitedB
                \semilog{1}{7}{-60}{60}
                %% quella più sotto, sarà quella più visibile essendo sopra
                \BodeGraph[orange %thin
                ]{1:7}
                {-\POAmp{1}{0.000022091}}
                \BodeGraph[orange, thin]{1:7}
                {-\POAmpAsymp{1}{0.000022091}}
                \BodeGraph[blue %thin
                ]{1:6}
                {\POAmp{1}{0.00094}}
                \BodeGraph[blue, thin]{1:6}
                {\POAmpAsymp{1}{0.000941}}

            % faire la somme des deux courbes
            %do the sum of the two diagrams
                 \BodeGraph[red,thick %thin
                ]{1:7}
                {\POAmp{1}{0.00094}
                -\POAmp{1}{0.000022091}
                }                 
                 \BodeGraph[red, thin]{1:7}
                {\POAmpAsymp{1}{0.000941}
                -\POAmpAsymp{1}{0.000022091}
                }
                %==================

                \end{scope}
                \begin{scope}[yshift=-7cm,yscale=4/180]
                \tikzset{
                    semilog lines/.style={thin, black},
                    semilog lines 2/.style={semilog lines,
                        gray },
                    semilog half lines/.style={semilog lines 2,
                        dotted },
                    semilog label x/.style={semilog lines,
                        below,font=\tiny},
                    semilog label y/.style={semilog lines,
                        above right,font=\tiny}
                }
                \UniteDegre
                \OrdBode{30}
                \semilog{1}{7}{-90}{90}
                \BodeGraph[orange]{1:7}
                {-\POArg{1}{0.000022091}}
                \BodeGraph[%samples=2,
                blue]
                {1:7}{\POArg{1}{0.00094}}

            % faire la somme des deux courbes
            %do the sum of the two diagrams                
                 \BodeGraph[red,thick %thin
                ]{1:7}
                {\POArg{1}{0.00094}
                -\POArg{1}{0.000022091}
                }                 
                \end{scope}
            \end{tikzpicture}    
\end{document}

相关内容