summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-19 21:21:22 +0000
committerKarl Berry <karl@freefriends.org>2022-01-19 21:21:22 +0000
commit7f024877c0d3e25cd8ba534cdb1fcd966a3f19e2 (patch)
tree7aaa5387787706642f3ccec6e90cd0ce5e9df7a7 /Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty
parent4bb991cb42f9d803c3eb89a336cd9ad90268de68 (diff)
bodeplot (19jan22)
git-svn-id: svn://tug.org/texlive/trunk@61661 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.sty33
1 files changed, 17 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty b/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty
index cb715d8a47b..49e2223ca92 100644
--- a/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty
+++ b/Master/texmf-dist/tex/latex/bodeplot/bodeplot.sty
@@ -23,6 +23,7 @@
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{groupplots}
+
\RequirePackage{ifluatex}%
\ifluatex
\let\pdfstrcmp\pdf@strcmp
@@ -190,25 +191,25 @@
ylabel={Gain (dB)},xmajorticks=false,\optmag@axes]
\edef\temp@cmd{\noexpand\addplot[variable=t,thick,\optmag@plot]}%
\temp@cmd {\func@mag};
- \optmag@commands;
+ \optmag@commands
\expandafter\nextgroupplot\expandafter[ytick distance=45,
ylabel={Phase ($^{\circ}$)},xlabel={Frequency (rad/s)},\optph@axes]
\edef\temp@cmd{\noexpand\addplot[variable=t,thick,\optph@plot]}%
\temp@cmd {\func@ph};
- \optph@commands;
+ \optph@commands
\else
\stepcounter{gnuplot@id}
\expandafter\nextgroupplot\expandafter[ytick distance=20,
ylabel={Gain (dB)},xmajorticks=false,\optmag@axes]
\edef\temp@cmd{\noexpand\addplot[variable=t,thick,\optmag@plot]}%
\temp@cmd gnuplot[gnuplot@degrees,gnuplot@prefix] {\func@mag};
- \optmag@commands;
+ \optmag@commands
\stepcounter{gnuplot@id}
\expandafter\nextgroupplot\expandafter[ytick distance=45,
ylabel={Phase ($^{\circ}$)},xlabel={Frequency (rad/s)},\optph@axes]
\edef\temp@cmd{\noexpand\addplot[variable=t,thick,\optph@plot]}%
\temp@cmd gnuplot[gnuplot@degrees,gnuplot@prefix] {\func@ph};
- \optph@commands;
+ \optph@commands
\fi
\end{groupplot}
\end{tikzpicture}
@@ -236,25 +237,25 @@
ylabel={Gain (dB)},xmajorticks=false,\optmag@axes]
\edef\temp@cmd{\noexpand\addplot[variable=t,thick,\optmag@plot]}%
\temp@cmd {\func@mag};
- \optmag@commands;
+ \optmag@commands
\expandafter\nextgroupplot\expandafter[ytick distance=45,
ylabel={Phase ($^{\circ}$)},xlabel={Frequency (rad/s)},\optph@axes]
\edef\temp@cmd{\noexpand\addplot[variable=t,thick,\optph@plot]}%
\temp@cmd {\func@ph};
- \optph@commands;
+ \optph@commands
\else
\stepcounter{gnuplot@id}%
\expandafter\nextgroupplot\expandafter[ytick distance=20,
ylabel={Gain (dB)},xmajorticks=false,\optmag@axes]
\edef\temp@cmd{\noexpand\addplot[variable=t,thick,\optmag@plot]}%
\temp@cmd gnuplot[gnuplot@degrees,gnuplot@prefix] {\func@mag};
- \optmag@commands;
+ \optmag@commands
\stepcounter{gnuplot@id}%
\expandafter\nextgroupplot\expandafter[ytick distance=45,
ylabel={Phase ($^{\circ}$)},xlabel={Frequency (rad/s)},\optph@axes]
\edef\temp@cmd{\noexpand\addplot[variable=t,thick,\optph@plot]}%
\temp@cmd gnuplot[gnuplot@degrees,gnuplot@prefix] {\func@ph};
- \optph@commands;
+ \optph@commands
\fi
\end{groupplot}
\end{tikzpicture}
@@ -555,13 +556,13 @@
\if@pgfarg
\temp@cmd ( {\n@pow{10}{((\func@mag)/20)}*cos(\func@ph)},
{\n@pow{10}{((\func@mag)/20)}*sin(\func@ph)} );
- \opt@commands;
+ \opt@commands
\else
\stepcounter{gnuplot@id}%
\temp@cmd gnuplot[parametric,gnuplot@degrees,gnuplot@prefix] {%
\n@pow{10}{((\func@mag)/20)}*cos(\func@ph),
\n@pow{10}{((\func@mag)/20)}*sin(\func@ph)};
- \opt@commands;
+ \opt@commands
\fi
\end{axis}
\end{tikzpicture}
@@ -588,13 +589,13 @@
\if@pgfarg
\temp@cmd ( {\n@pow{10}{((\func@mag)/20)}*cos(\func@ph)},
{\n@pow{10}{((\func@mag)/20)}*sin(\func@ph)} );
- \opt@commands;
+ \opt@commands
\else
\stepcounter{gnuplot@id}%
\temp@cmd gnuplot[parametric,gnuplot@degrees,gnuplot@prefix]{%
\n@pow{10}{((\func@mag)/20)}*cos(\func@ph),
\n@pow{10}{((\func@mag)/20)}*sin(\func@ph)};
- \opt@commands;
+ \opt@commands
\fi
\end{axis}
\end{tikzpicture}
@@ -691,12 +692,12 @@
\edef\temp@cmd{\noexpand\addplot[variable=t,thick,\opt@plot]}%
\if@pgfarg
\temp@cmd ( {\func@ph} , {\func@mag} );
- \opt@commands;
+ \opt@commands
\else
\stepcounter{gnuplot@id}%
\temp@cmd gnuplot[parametric, gnuplot@degrees, gnuplot@prefix]
{ \func@ph , \func@mag };
- \opt@commands;
+ \opt@commands
\fi
\end{axis}
\end{tikzpicture}
@@ -721,12 +722,12 @@
\edef\temp@cmd{\noexpand\addplot[variable=t,thick,\opt@plot]}%
\if@pgfarg
\temp@cmd ( {\func@ph} , {\func@mag} );
- \opt@commands;
+ \opt@commands
\else
\stepcounter{gnuplot@id}%
\temp@cmd gnuplot[parametric, gnuplot@degrees, gnuplot@prefix]
{ \func@ph , \func@mag };
- \opt@commands;
+ \opt@commands
\fi
\end{axis}
\end{tikzpicture}