General ⇒ Plotting with Touchstone files
Plotting with Touchstone files
http://tex.stackexchange.com/questions/ ... 1p-s2p-s3p
However I can't get it to work, it's an incomplete example. I need a more polished example to work with. Attached a file of one of our exports. Hoping someone else has worked with these files to create plots and can provide a good template to run with.
- Attachments
-
- s2ptest.zip
- (20.68 KiB) Downloaded 285 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Plotting with Touchstone files
Re: Plotting with Touchstone files
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Plotting with Touchstone files
We are a bit short on helpers and supporters right now. In fact i am the only regular one, a hand full others drop in occasionally.
I pushed the question at TeX.SX back on top, maybe there will be an answer.
-
torbjorn t.
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Re: Plotting with Touchstone files
-
torbjorn t.
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Plotting with Touchstone files
Code: Select all
\documentclass[border=5mm]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel={frequency [GHz]},
ylabel={S [dB]},
no markers,
thick,
legend pos=south east
]
\addplot table[mark=none, x index=0, skip first n=5, y index=1] {data.s2p};
\addlegendentry{$s_{11}$}
\addplot table[mark=none, x index=0, skip first n=5, y index=3] {data.s2p};
\addlegendentry{$s_{21}$}
\end{axis}
\end{tikzpicture}
\end{document}