summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-11-02 22:02:31 +0000
committerKarl Berry <karl@freefriends.org>2022-11-02 22:02:31 +0000
commit76c0a04ebe2e4c563d667541e62560ddf6ad7e26 (patch)
tree132b68914b986e4dbaf2d4c9641c8c79213bf710 /Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty
parentf03665b88b82c895af34a118db299d4a44a23baf (diff)
bodeplot (2nov22)
git-svn-id: svn://tug.org/texlive/trunk@64902 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty')
-rw-r--r--Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty27
1 files changed, 14 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty b/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty
index 0fdbc3bcb23..bc5dbf859c9 100644
--- a/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty
+++ b/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty
@@ -18,6 +18,7 @@
\ProvidesPackage{bodeplot}
\RequirePackage{pdftexcmds}
\RequirePackage{ifplatform}
+\RequirePackage{environ}
\RequirePackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{groupplots}
@@ -206,10 +207,10 @@
\newcommand*{\PhSOPoles}[2]{((-atan2((#1)*t,((#2) - \n@pow{t}{2})))*\ph@scale)}
\newcommand*{\PhSOPolesLin}[2]{((#2>0 ?
\PhCSPolesLin{(#1/(2*sqrt(#2)))}{(sqrt(#2))} :
- (#1>0 ? -pi : pi))*\ph@scale)}
+ (#1>0 ? -pi : pi)))}
\newcommand*{\PhSOPolesAsymp}[2]{((#2>0 ?
\PhCSPolesAsymp{(#1/(2*sqrt(#2)))}{(sqrt(#2))} :
- (#1>0 ? -pi : pi))*\ph@scale)}
+ (#1>0 ? -pi : pi)))}
\newcommand*{\MagSOZeros}{0-\MagSOPoles}
\newcommand*{\MagSOZerosLin}{0-\MagSOPolesLin}
\newcommand*{\MagSOZerosAsymp}{0-\MagSOPolesAsymp}
@@ -433,7 +434,7 @@
};
\fi
}
-\newenvironment{BodePhPlot}[3][]{
+\NewEnviron{BodePhPlot}[3][]{
\parse@env@opt{#1}
\edef\temp@cmd{\noexpand\begin{tikzpicture} [\unexpanded\expandafter{\opt@tikz}]
\noexpand\begin{semilogxaxis}[
@@ -448,11 +449,11 @@
]
}
\temp@cmd
-}{
+ \BODY
\end{semilogxaxis}
\end{tikzpicture}
}
-\newenvironment{BodeMagPlot}[3][]{
+\NewEnviron{BodeMagPlot}[3][]{
\parse@env@opt{#1}
\edef\temp@cmd{\noexpand\begin{tikzpicture} [\unexpanded\expandafter{\opt@tikz}]
\noexpand\begin{semilogxaxis}[
@@ -467,11 +468,11 @@
]
}
\temp@cmd
-}{
+ \BODY
\end{semilogxaxis}
\end{tikzpicture}
}
-\newenvironment{BodePlot}[3][]{
+\NewEnviron{BodePlot}[3][]{
\parse@env@opt{#1}
\edef\temp@cmd{\noexpand\begin{tikzpicture} [\unexpanded\expandafter{\opt@tikz}]
\noexpand\begin{semilogxaxis}[
@@ -485,7 +486,7 @@
]
}
\temp@cmd
-}{
+ \BODY
\end{semilogxaxis}
\end{tikzpicture}
}
@@ -807,7 +808,7 @@
};
\fi
}
-\newenvironment{NyquistPlot}[3][]{
+\NewEnviron{NyquistPlot}[3][]{
\parse@env@opt{#1}
\edef\temp@cmd{\noexpand\begin{tikzpicture} [\unexpanded\expandafter{\opt@tikz}]
\noexpand\begin{axis}[
@@ -820,8 +821,8 @@
]
}
\temp@cmd
- \addplot [only marks,mark=+,thick,red] (-1 , 0);
-}{
+ \addplot [only marks,mark=+,thick,red] (-1 , 0);
+ \BODY
\end{axis}
\end{tikzpicture}
}
@@ -931,7 +932,7 @@
\end{axis}
\end{tikzpicture}
}
-\newenvironment{NicholsChart}[3][]{
+\NewEnviron{NicholsChart}[3][]{
\parse@env@opt{#1}
\edef\temp@cmd{\noexpand\begin{tikzpicture} [\unexpanded\expandafter{\opt@tikz}]
\noexpand\begin{axis}[
@@ -944,7 +945,7 @@
]
}
\temp@cmd
-}{
+ \BODY
\end{axis}
\end{tikzpicture}
}