kicad2ems.gui.splot¶
The Results page's plots (pyqtgraph): S-parameters and antenna results as a grid
of subplots you add (Add plot) and close (x on each), laid out in as many
columns as the width allows.
Cartesian over frequency: |S| dB or linear, phase, group delay, VSWR; with
antenna results also gain / directivity / realized gain and the
radiation efficiency
Smith the reflections (S11, S22, ...) with an impedance readout
Polar S in polar form (|S| and angle), or the far-field cuts (xz, yz,
xy) at a recorded frequency
The traces (one tree: openEMS, mom25d, the line model, a compare file, added
folders) are shared by every plot. The mouse reads every plot at a frequency; a
click drops a marker on all of them (drag a marker line to move it, Delete in
the table to remove it). Export CSV and Save image take what is shown.
- class kicad2ems.gui.splot.SPlot(parent=None)[source]¶
- property kind[source]¶
The quantity box of the first Cartesian plot (one is added if there is none).
- layout_spec()[source]¶
The subplots as strings (Cartesian:|S| (dB), Smith, Polar:Far-field cuts): what the window remembers.
- look(t)[source]¶
(colour, style name, width) of a trace: its own colour (by its place in the list), its source's line style (the sources in order: solid, dashed, dotted, ...), then what the user chose.
- restyle()[source]¶
The theme's colours (theme.apply): the cursors' dots, then everything drawn again (grids, markers).
- set_antenna(res=None, sphere=None)[source]¶
Antenna results (the run's <name>_antenna.json as a dict) and its far-field sphere, or None: the Cartesian plots offer gain and efficiency, the polar plots the far-field cuts.
- set_layout(spec)[source]¶
Replace the subplots by these (layout_spec strings); unknown entries are skipped.
- set_look(traces, **kw)[source]¶
The user's colour / style / width for these traces (kw None: back to the automatic one).
- set_traces(traces, z0=50.0)[source]¶
Show these traces (a new run): keeps the plots and the markers' frequencies.
- class kicad2ems.gui.splot.Subplot(host, kind, option=None)[source]¶
One plot of the grid: a header (its type, what it shows, close) and a pyqtgraph plot.
- property complex_plane[source]¶
A plot of complex S (Smith, polar S): markers and the cursor are points on its traces.