I'm trying to plot touchstone (s2p) data exported from another software, but the touchstone coordinate system is rectangular. So I have to overlay a XY plot over the smith chart to get it right.
The XY chart should have the center (0,0) in the center of the smith chart, and range from (-1,-1) to (1,1). (0,1) should align at the top of the smith chart. (0,-1) should align at the bottom the smith chart. The edges should be at (+/- 1,0).
My fallback for now is the scikit-rf
from python, but the output graphics is not very nice or configurable. So I would love to have it working in tikz
.
The example under shows that the two don't overlap properly. Any clue how to make the normal axis environment perfectly overlap the smith chart? ?
\documentclass[margin=10pt]{standalone}
\usepackage{verbatim}
\usepackage{tikz}
\usepackage{pgf}
\usepackage{pgfplots}
\usetikzlibrary{shapes,arrows,positioning,calc}
\usetikzlibrary{pgfplots.smithchart}
\begin{document}
\begin{tikzpicture}
\begin{smithchart}[title=S]
\end{smithchart}
\begin{axis}
\addplot[color=red,mark=x] coordinates {
(-1,0)
(1,0)
(0,-1)
(0,1)
(0,0)
};
\end{axis}
\end{tikzpicture}
\end{document}