In the simple code given below, the bode plot does not plot with used in XeLaTeXify
. I did put in the --shell-escape -enable-write18
in the XeLaTeX
console window:
However, I just get the grid and no plot.
I do see gnuplot
in the WinEdt path.
Can you tell me if bodegraph
works with XeLaTeXify
? If so, can you tell me how to get this code to compile in XeLaTex
within WinEdt. Thanks!
CODE:
\documentclass[10pt]{article}
\usepackage{amsmath,amssymb}
\usepackage{tikz}
\usepackage{bodegraph}
\usetikzlibrary{intersections}
\usetikzlibrary{calc}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[>=latex',
ref lines/.style={thin, blue!60},
ref points/.style={circle, black, opacity=0.7, fill, minimum size= 3pt, inner sep=0},
every node/.style={font=\small},
bode lines/.style={very thick, blue},
Gclabel/.style={text=blue},
xscale=12/3]
%
\begin{scope}[yshift=-3.5cm,yscale=4/80]
\UnitedB
\semilog{-2}{2}{-60}{80}
%% Bode plot (magnitude) for the original system, 4/(s/(1+2s)).
%% Asymptotic line
\BodeAmp[ref lines, red!60]{-1:1.8}{\POAmpAsymp{18}{2.0}+\IntAmp{1}}
%% Bode plot
\BodeAmp[bode lines, black, name path=Gomagnitude]{-1:1.35}{\POAmp{4}{2.0}+\IntAmp{1}}
%
% Axes label
\node [below=6pt] at (0.5,-60) {Frequency, $\omega$};
\node [rotate=90] at (-2.2,5) {Magnitude, $20\log(|G(\text{j}\omega)|)$};
\end{scope}
\end{tikzpicture}
\end{document}
--shell-escape -enable-write18
in the PDFTeXify tab for the code to work. Thank you!--shell-escape
and--enable-write18
) . The options are synonyms. And polyglossia or babel are not required for xelatex, but it is sensible to add one of this package (I would use babel for an english document).