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 262 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- 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.
-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Re: Plotting with Touchstone files
-
- 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}