Graphics, Figures & TablesSmith Chart

Information and discussion about graphics, figures & tables in LaTeX documents.
drgz
Posts: 44
Joined: Sat Apr 18, 2009 8:40 pm

Smith Chart

Post by drgz »

localghost wrote:The new version 1.5 of the brilliant pgfplots package now available on CTAN supports Smith Charts by a special library. This way those charts can be done very easy.
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}
but that didn't work :S

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.
Attachments
smith_pae_contour_matlab.pdf
MATLAB eps output of contour plot in Smith chart.
(36.33 KiB) Downloaded 454 times
smith_pae_filled_contour.pdf
Example on filled contour plot in Smith chart.
(76.88 KiB) Downloaded 355 times
smith_pae_contour.pdf
Example on contour plot in Smith chart.
(73.38 KiB) Downloaded 361 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply