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.
reflections()[source]
The checked reflections (what a Smith chart shows).
restyle()[source]
The theme's colours (theme.apply): the cursors' dots, then everything
drawn again (grids, markers).
s_kinds()[source]
The S-parameter quantities the Cartesian plots show, in order, each
once.
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.
sources()[source]
The solvers (sources) of the traces, in their order.
update_antenna(res, sphere)[source]
New antenna results of the same run (a steered drive): the antenna
plots redrawn, the rest kept.
visible()[source]
The checked traces.
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.
fill_options()[source]
What this plot can show, for what the page has (antenna quantities
only with antenna results).
property on_frequency[source]
A plot over frequency (cursor line, marker lines).
property reference[source]
A difference plot's reference solver (its source name), else None.
property s_kind[source]
The S-parameter quantity of a Cartesian plot, else None.
spec()[source]
What the window remembers: the kind and what it was asked to show (a
plot of the gain stays one while a folder without antenna results shows
|S| in it).
kicad2ems.gui.splot.default_layout(antenna=False)[source]
The subplots a page starts with: |S| and the Smith chart; for an antenna
also its gain and pattern.