You don't happen to have any suggestion for how to combine a Smith chart and a contour-plot? Got some load pull data I'd like to plot. Works fine with matlab2tikz, but it would be much easier to draw the actual Smith chart with the new function, and the just add the contour plot on top of that, instead of how m2tikz does it (draws all the lines in the Smith chart as separate plots in the same file).
Tried with
Code: Select all
\begin{tikzpicture}
\begin{smithchart}[title=Default Smith Chart]
\addplot[contour prepared={labels=false}, contour prepared format=matlab]
file {pae.dat};
\end{smithchart}
\end{tikzpicture}
pae.dat contains the contour() output matrix from i.e.
[C h] = contour(X,Y,Z);
C = C.';
in MATLAB.
Edit: come to think of it now, it might be that this won't work as the Smith chart axis type interprets (x,y) as (re,im), whereas the data back from the contour() function is not organized in that way.
Edit: Works! Just had to add a small command; is smithchart cs in the \addplot options.
Btw, there should be added an \infty-tick(label) at the very right of the Smith chart to denote the high-impedance region. *Send e-mail*
Edit #2: if anyone have suggestions on how to make a patched/filled contour plot (i.e. contourf() in MATLAB) just shoot.

Edit #3: Filled contour plots by adding filled, e.g. contour prepared={labels=false,filled}, but the result wasn't that good.