SmithChart¶
Smith chart of reflection coefficients (SPEC-003).

Graphs, specialized · Widget catalog · API reference ·
schema smith.schema.json
Example¶
The traits of the picture above:
k = np.arange(12) / 3
gamma = 0.6 * np.exp(1j * k) # reflection coefficients
re, im = gamma.real.tolist(), gamma.imag.tolist()
ai.SmithChart(
value=[{"name": "sweep", "style": "both", "re": re, "im": im}],
label="SmithChart",
size=(220, 220),
)
Traits¶
| Trait | Type | Default | Set by | Description |
|---|---|---|---|---|
value |
array of object | [] |
host | Data sets {name, color, style, re, im} of reflection coefficients Γ = (Z - z0) / (Z + z0); a host plotting impedances converts them (Python: plot(z, kind="impedance")). |
z0 |
number | 50 |
host | Reference impedance in ohms, used to show impedances in the tooltips (must be > 0). |
show_admittance |
boolean | false |
host | Also draw the constant-conductance circles. |
Common traits (10), shared with other widgets
| Trait | Type | Default | Set by | Description |
|---|---|---|---|---|
mode |
"control", "indicator" |
"indicator" |
host | "control": the user sets the value; "indicator": display only. |
label |
string | "" |
host | Plain text, never interpreted as HTML (SEC-002). |
disabled |
boolean | false |
host | Greyed out, input rejected. |
visible |
boolean | true |
host | |
tooltip |
string | "" |
host | Plain text shown on hover. |
size |
array | [260,260] |
host | [width, height] in CSS pixels. |
style |
"modern", "classic", "system" |
"modern" |
host | |
theme |
"auto", "light", "dark", "system" |
"auto" |
host | "auto": the style decides; "system": the host page or the operating system (STYLE-007). |
skin |
object | {} |
host | Replaceable drawing parts: part name -> SVG source, sanitized (STYLE-005, STYLE-006). |
show_legend |
boolean | true |
host |
Set by: host, the program (Python, Julia, ...); widget, the user through the widget;
derived, computed from other traits by the host that owns the state, or by the widget.
See the trait contract.