From 6609388191b5bf4865046b232a1459e27d04a7ef Mon Sep 17 00:00:00 2001 From: Rushikesh Kamalapurkar Date: Wed, 2 Nov 2022 12:03:36 -0500 Subject: [PATCH] v 1.1.3 final --- bodeplot.dtx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bodeplot.dtx b/bodeplot.dtx index fd736a5..7d86b5b 100644 --- a/bodeplot.dtx +++ b/bodeplot.dtx @@ -68,7 +68,7 @@ % % \fi % -% \CheckSum{1629} +% \CheckSum{1641} % % \changes{v1.0}{2021/10/25}{Initial release} % \changes{v1.0.4}{2021/11/05}{Fixed unintended optional argument macro expansion} @@ -1396,9 +1396,11 @@ Nyquist plots with additional commands, using two different macros \fi \if@pgfarg \ifnum\pdf@strcmp{#2}{phase}=0 - \addplot [freq@filter, domain=\freq@scale*\pgfkeysvalueof{/pgfplots/domain}*\freq@scale, variable=t, #1]{\n@mod{\plot@macro}{2*pi}}; + \edef\temp@cmd{\noexpand\addplot [freq@filter, domain=\freq@scale*\pgfkeysvalueof{/pgfplots/domain}*\freq@scale, variable=t, #1]} + \temp@cmd {\n@mod{\plot@macro}{2*pi}}; \else - \addplot [freq@filter, domain=\freq@scale*\pgfkeysvalueof{/pgfplots/domain}*\freq@scale, variable=t, #1]{\plot@macro}; + \edef\temp@cmd{\noexpand\addplot [freq@filter, domain=\freq@scale*\pgfkeysvalueof{/pgfplots/domain}*\freq@scale, variable=t, #1]} + \temp@cmd {\plot@macro}; \fi \else \stepcounter{gnuplot@id} @@ -1434,7 +1436,8 @@ Nyquist plots with additional commands, using two different macros % \begin{macrocode} \newcommand{\addBodeComponentPlot}[2][thick]{ \if@pgfarg - \addplot [freq@filter, domain=\freq@scale*\pgfkeysvalueof{/pgfplots/domain}*\freq@scale, variable=t, #1] {#2}; + \edef\temp@cmd{\noexpand\addplot [freq@filter, domain=\freq@scale*\pgfkeysvalueof{/pgfplots/domain}*\freq@scale, variable=t, #1]} + \temp@cmd {#2}; \else \stepcounter{gnuplot@id} \addplot [variable=t, #1] gnuplot [raw gnuplot, gnuplot@prefix]