NanoVNASaver.Charts package

Submodules

NanoVNASaver.Charts.CLogMag module

class NanoVNASaver.Charts.CLogMag.CombinedLogMagChart(name='')[source]

Bases: LogMagChart

calc_scaling() None[source]
copy()[source]
drawChart(qp: QPainter)[source]
drawValues(qp: QPainter)[source]
resetDisplayLimits()[source]
resetReference()[source]
setCombinedData(data11, data21)[source]
setCombinedReference(data11, data21)[source]

NanoVNASaver.Charts.Capacitance module

class NanoVNASaver.Charts.Capacitance.CapacitanceChart(name='')[source]

Bases: FrequencyChart

NanoVNASaver.Charts.Chart module

class NanoVNASaver.Charts.Chart.Chart(name)[source]

Bases: QWidget

addSWRMarker(swr: float)[source]
bands: ClassVar[Any] = None
clearSWRMarkers()[source]
color: ClassVar[ChartColors] = ChartColors(background=<PyQt6.QtGui.QColor object>, foreground=<PyQt6.QtGui.QColor object>, reference=<PyQt6.QtGui.QColor object>, reference_secondary=<PyQt6.QtGui.QColor object>, sweep=<PyQt6.QtGui.QColor object>, sweep_secondary=<PyQt6.QtGui.QColor object>, swr=<PyQt6.QtGui.QColor object>, text=<PyQt6.QtGui.QColor object>, bands=<PyQt6.QtGui.QColor object>)
copy()[source]
static drawMarker(x: int, y: int, qp: QPainter, color: QColor, number: int = 0)[source]
drawTitle(qp: QPainter, position: QPoint = None)[source]
getActiveMarker() Marker[source]
getNearestMarker(x, y) Marker | None[source]
getPosition(d: Datapoint) tuple[int, int][source]
mousePressEvent(self, a0: QMouseEvent | None)[source]
mouseReleaseEvent(self, a0: QMouseEvent | None)[source]
popoutRequested: ClassVar[Any]

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

removeSWRMarker(swr: float)[source]
resetReference()[source]
saveScreenshot()[source]
setBands(bands)[source]
setData(data)[source]
setDrawLines(draw_lines)[source]
setLineThickness(thickness)[source]
setMarkerSize(size)[source]
setMarkers(markers)[source]
setPointSize(size)[source]
setReference(data)[source]
setSweepTitle(title)[source]
update(self)[source]
update(self, a0: QRect) None
update(self, a0: QRegion) None
update(self, ax: int, ay: int, aw: int, ah: int) None
wheelEvent(self, a0: QWheelEvent | None)[source]
zoomTo(x1, y1, x2, y2)[source]
class NanoVNASaver.Charts.Chart.ChartColors(background: PyQt6.QtGui.QColor = <factory>, foreground: PyQt6.QtGui.QColor = <factory>, reference: PyQt6.QtGui.QColor = <factory>, reference_secondary: PyQt6.QtGui.QColor = <factory>, sweep: PyQt6.QtGui.QColor = <factory>, sweep_secondary: PyQt6.QtGui.QColor = <factory>, swr: PyQt6.QtGui.QColor = <factory>, text: PyQt6.QtGui.QColor = <factory>, bands: PyQt6.QtGui.QColor = <factory>)[source]

Bases: object

background: QColor
bands: QColor
foreground: QColor
reference: QColor
reference_secondary: QColor
sweep: QColor
sweep_secondary: QColor
swr: QColor
text: QColor
class NanoVNASaver.Charts.Chart.ChartDimensions(height: int = 200, height_min: int = 200, width: int = 200, width_min: int = 200, line: int = 1, point: int = 2)[source]

Bases: object

height: int = 200
height_min: int = 200
line: int = 1
point: int = 2
width: int = 200
width_min: int = 200
class NanoVNASaver.Charts.Chart.ChartDragBox(pos: tuple[int] = (-1, -1), pos_start: tuple[int] = (0, 0), state: bool = False, move_x: int = -1, move_y: int = -1)[source]

Bases: object

move_x: int = -1
move_y: int = -1
pos: tuple[int] = (-1, -1)
pos_start: tuple[int] = (0, 0)
state: bool = False
class NanoVNASaver.Charts.Chart.ChartFlags(draw_lines: bool = False, is_popout: bool = False)[source]

Bases: object

draw_lines: bool = False
is_popout: bool = False
class NanoVNASaver.Charts.Chart.ChartMarker(qp: QPaintDevice)[source]

Bases: QWidget

draw(x: int, y: int, color: QColor, text: str = '')[source]

NanoVNASaver.Charts.Frequency module

class NanoVNASaver.Charts.Frequency.FrequencyChart(name)[source]

Bases: Chart

contextMenuEvent(self, a0: QContextMenuEvent | None)[source]
copy()[source]
drawBands(qp, fstart, fstop)[source]
drawChart(qp: QPainter)[source]
drawData(qp: QPainter, data: list[Datapoint], color: QColor, y_function=None)[source]
drawDragbog(qp: QPainter)[source]
drawFrequencyTicks(qp)[source]
drawMarkers(qp, data=None, y_function=None)[source]
drawValues(qp: QPainter)[source]
frequencyAtPosition(x, limit=True) int[source]

Calculates the frequency at a given X-position :param limit: Determines whether frequencies outside the

currently displayed span can be returned.

Parameters:

x – The X position to calculate for.

Returns:

The frequency at the given position, if one exists or -1 otherwise. If limit is True, and the value is before or after the chart, returns minimum or maximum frequencies.

getPlotable(x, y, distantx, distanty)[source]
getXPosition(d: Datapoint) int[source]
getYPosition(d: Datapoint) int[source]
isPlotable(x, y)[source]
keyPressEvent(self, a0: QKeyEvent | None)[source]
logarithmicYAllowed() bool[source]
mouseMoveEvent(self, a0: QMouseEvent | None)[source]
paintEvent(self, a0: QPaintEvent | None)[source]
resetDisplayLimits()[source]
resizeEvent(self, a0: QResizeEvent | None)[source]
setFixedSpan(fixed_span: bool)[source]
setFixedValues(fixed_values: bool)[source]
setLogarithmicX(logarithmic: bool)[source]
setLogarithmicY(logarithmic: bool)[source]
setMaximumFrequency()[source]
setMaximumValue()[source]
setMinimumFrequency()[source]
setMinimumValue()[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

zoomTo(x1, y1, x2, y2)[source]

NanoVNASaver.Charts.GroupDelay module

class NanoVNASaver.Charts.GroupDelay.GroupDelayChart(name='', reflective=True)[source]

Bases: FrequencyChart

calc_data(data: list[Datapoint])[source]
calculateGroupDelay()[source]
copy()[source]
drawValues(qp: QPainter)[source]
draw_data(qp: QPainter, color: QColor, data: list[Datapoint], delay: list[Datapoint])[source]
getYPosition(d: Datapoint) int[source]
getYPositionFromDelay(delay: float) int[source]
setData(data)[source]
setReference(data)[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

NanoVNASaver.Charts.Inductance module

class NanoVNASaver.Charts.Inductance.InductanceChart(name='')[source]

Bases: FrequencyChart

NanoVNASaver.Charts.LogMag module

class NanoVNASaver.Charts.LogMag.LogMagChart(name='')[source]

Bases: FrequencyChart

calc_scaling() None[source]
copy()[source]
drawValues(qp: QPainter) None[source]
draw_db_lines(qp, maxValue, minValue, ticks) None[source]
draw_grid(qp)[source]
draw_swr_markers(qp) None[source]
getYPosition(d: Datapoint) int[source]
logMag(p: Datapoint) float[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

class NanoVNASaver.Charts.LogMag.TickVal(count: int = 0, first: float = 0.0, step: float = 0.0)[source]

Bases: object

count: int = 0
first: float = 0.0
step: float = 0.0
NanoVNASaver.Charts.LogMag.span2ticks(span: float, min_val: float) TickVal[source]

NanoVNASaver.Charts.Magnitude module

class NanoVNASaver.Charts.Magnitude.MagnitudeChart(name='')[source]

Bases: FrequencyChart

copy()[source]
drawValues(qp: QPainter)[source]
getYPosition(d: Datapoint) int[source]
static magnitude(p: Datapoint) float[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

NanoVNASaver.Charts.MagnitudeZ module

class NanoVNASaver.Charts.MagnitudeZ.MagnitudeZChart(name='')[source]

Bases: FrequencyChart

copy()[source]
drawValues(qp: QPainter)[source]
getYPosition(d: Datapoint) int[source]
logarithmicYAllowed() bool[source]
static magnitude(p: Datapoint) float[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

NanoVNASaver.Charts.MagnitudeZSeries module

class NanoVNASaver.Charts.MagnitudeZSeries.MagnitudeZSeriesChart(name='')[source]

Bases: MagnitudeZChart

static magnitude(p: Datapoint) float[source]

NanoVNASaver.Charts.MagnitudeZShunt module

class NanoVNASaver.Charts.MagnitudeZShunt.MagnitudeZShuntChart(name='')[source]

Bases: MagnitudeZChart

static magnitude(p: Datapoint) float[source]

NanoVNASaver.Charts.Permeability module

class NanoVNASaver.Charts.Permeability.PermeabilityChart(name='')[source]

Bases: FrequencyChart

drawChart(qp: QPainter)[source]
drawValues(qp: QPainter)[source]
getImYPosition(d: Datapoint) int[source]
getNearestMarker(x, y) Marker[source]
getReYPosition(d: Datapoint) int[source]
logarithmicYAllowed() bool[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

NanoVNASaver.Charts.Phase module

class NanoVNASaver.Charts.Phase.PhaseChart(name='')[source]

Bases: FrequencyChart

copy()[source]
drawValues(qp: QPainter)[source]
getYPosition(d: Datapoint) int[source]
setUnwrap(unwrap: bool)[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

NanoVNASaver.Charts.Polar module

class NanoVNASaver.Charts.Polar.PolarChart(name='')[source]

Bases: SquareChart

drawChart(qp: QPainter)[source]

NanoVNASaver.Charts.QFactor module

class NanoVNASaver.Charts.QFactor.QualityFactorChart(name='')[source]

Bases: FrequencyChart

drawChart(qp: QPainter)[source]
drawValues(qp: QPainter)[source]
getYPosition(d: Datapoint) int[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

NanoVNASaver.Charts.RI module

class NanoVNASaver.Charts.RI.RealImaginaryChart(name='')[source]

Bases: FrequencyChart

contextMenuEvent(self, a0: QContextMenuEvent | None)[source]
copy()[source]
drawHorizontalTicks(qp)[source]
drawValues(qp: QPainter)[source]
find_scaling()[source]
getImYPosition(d: Datapoint) int[source]
getNearestMarker(x, y) Marker | None[source]
getReYPosition(d: Datapoint) int[source]
imag_scaling_constraints(min_imag, max_imag)[source]
setFixedValues(fixed_values: bool)[source]
setMaximumImagValue()[source]
setMaximumRealValue()[source]
setMinimumImagValue()[source]
setMinimumRealValue()[source]
value(p: Datapoint) complex[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

zoomTo(x1, y1, x2, y2)[source]

NanoVNASaver.Charts.RIMu module

class NanoVNASaver.Charts.RIMu.RealImaginaryMuChart(name='')[source]

Bases: RealImaginaryChart

contextMenuEvent(self, a0: QContextMenuEvent | None)[source]
copy()[source]
drawChart(qp: QPainter)[source]
mu_r(p: Datapoint) complex[source]
setCoreArea()[source]
setCoreLength()[source]
setCoreWindings()[source]
value(p: Datapoint) complex[source]

NanoVNASaver.Charts.RIZ module

class NanoVNASaver.Charts.RIZ.RealImaginaryZChart(name='')[source]

Bases: RealImaginaryChart

contextMenuEvent(self, a0: QContextMenuEvent | None)[source]
drawChart(qp: QPainter)[source]
impedance(p: Datapoint) complex[source]
value(p: Datapoint) complex[source]

NanoVNASaver.Charts.RIZSeries module

class NanoVNASaver.Charts.RIZSeries.RealImaginaryZSeriesChart(name='')[source]

Bases: RealImaginaryZChart

impedance(p: Datapoint) complex[source]

NanoVNASaver.Charts.RIZShunt module

class NanoVNASaver.Charts.RIZShunt.RealImaginaryZShuntChart(name='')[source]

Bases: RealImaginaryZChart

impedance(p: Datapoint) complex[source]

NanoVNASaver.Charts.SParam module

class NanoVNASaver.Charts.SParam.SParameterChart(name='')[source]

Bases: FrequencyChart

copy()[source]
drawChart(qp: QPainter)[source]
drawValues(qp: QPainter)[source]
getImYPosition(d: Datapoint) int[source]
getReYPosition(d: Datapoint) int[source]
getYPosition(d: Datapoint) int[source]
logMag(p: Datapoint) float[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

NanoVNASaver.Charts.Smith module

class NanoVNASaver.Charts.Smith.SmithChart(name='')[source]

Bases: SquareChart

drawChart(qp: QPainter) None[source]

NanoVNASaver.Charts.Square module

class NanoVNASaver.Charts.Square.SquareChart(name='')[source]

Bases: Chart

drawChart(qp: QPainter) None[source]
drawValues(qp: QPainter)[source]
draw_data(qp: QPainter, color: QColor, data: list[Datapoint], fstart: int = 0, fstop: int = 0)[source]
getXPosition(d: Datapoint) int[source]
getYPosition(d: Datapoint) int[source]
mouseMoveEvent(self, a0: QMouseEvent | None)[source]
paintEvent(self, a0: QPaintEvent | None)[source]
resizeEvent(self, a0: QResizeEvent | None)[source]
zoomTo(x1, y1, x2, y2)[source]

NanoVNASaver.Charts.TDR module

class NanoVNASaver.Charts.TDR.TDRChart(name)[source]

Bases: Chart

contextMenuEvent(self, a0: QContextMenuEvent | None)[source]
copy()[source]
fixedSpan = False
fixedValues = False
isPlotable(x, y)[source]
lengthAtPosition(x, limit=True)[source]
markerLocation = -1
maxDisplayLength = 50
maxImpedance = 1000
minDisplayLength = 0
minImpedance = 0
mouseMoveEvent(self, a0: QMouseEvent | None)[source]
paintEvent(self, a0: QPaintEvent | None)[source]
resetDisplayLimits()[source]
resizeEvent(self, a0: QResizeEvent | None)[source]
setFixedSpan(fixed_span)[source]
setFixedValues(fixed_values)[source]
setMaximumImpedance()[source]
setMaximumLength()[source]
setMinimumImpedance()[source]
setMinimumLength()[source]
valueAtPosition(y)[source]
zoomTo(x1, y1, x2, y2)[source]

NanoVNASaver.Charts.VSWR module

class NanoVNASaver.Charts.VSWR.VSWRChart(name='')[source]

Bases: FrequencyChart

drawValues(qp: QPainter)[source]
getYPosition(d: Datapoint) int[source]
getYPositionFromValue(vswr) int[source]
logarithmicYAllowed() bool[source]
resetDisplayLimits()[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

Module contents

class NanoVNASaver.Charts.CapacitanceChart(name='')[source]

Bases: FrequencyChart

class NanoVNASaver.Charts.Chart(name)[source]

Bases: QWidget

addSWRMarker(swr: float)[source]
bands: ClassVar[Any] = None
clearSWRMarkers()[source]
color: ClassVar[ChartColors] = ChartColors(background=<PyQt6.QtGui.QColor object>, foreground=<PyQt6.QtGui.QColor object>, reference=<PyQt6.QtGui.QColor object>, reference_secondary=<PyQt6.QtGui.QColor object>, sweep=<PyQt6.QtGui.QColor object>, sweep_secondary=<PyQt6.QtGui.QColor object>, swr=<PyQt6.QtGui.QColor object>, text=<PyQt6.QtGui.QColor object>, bands=<PyQt6.QtGui.QColor object>)
copy()[source]
data: list[Datapoint]
static drawMarker(x: int, y: int, qp: QPainter, color: QColor, number: int = 0)[source]
drawTitle(qp: QPainter, position: QPoint = None)[source]
getActiveMarker() Marker[source]
getNearestMarker(x, y) Marker | None[source]
getPosition(d: Datapoint) tuple[int, int][source]
markers: list[Marker]
mousePressEvent(self, a0: QMouseEvent | None)[source]
mouseReleaseEvent(self, a0: QMouseEvent | None)[source]
popoutRequested: ClassVar[Any]

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

reference: list[Datapoint]
removeSWRMarker(swr: float)[source]
resetReference()[source]
saveScreenshot()[source]
setBands(bands)[source]
setData(data)[source]
setDrawLines(draw_lines)[source]
setLineThickness(thickness)[source]
setMarkerSize(size)[source]
setMarkers(markers)[source]
setPointSize(size)[source]
setReference(data)[source]
setSweepTitle(title)[source]
swrMarkers: set[float]
update(self)[source]
update(self, a0: QRect) None
update(self, a0: QRegion) None
update(self, ax: int, ay: int, aw: int, ah: int) None
wheelEvent(self, a0: QWheelEvent | None)[source]
zoomTo(x1, y1, x2, y2)[source]
class NanoVNASaver.Charts.CombinedLogMagChart(name='')[source]

Bases: LogMagChart

calc_scaling() None[source]
copy()[source]
drawChart(qp: QPainter)[source]
drawValues(qp: QPainter)[source]
resetDisplayLimits()[source]
resetReference()[source]
setCombinedData(data11, data21)[source]
setCombinedReference(data11, data21)[source]
class NanoVNASaver.Charts.FrequencyChart(name)[source]

Bases: Chart

contextMenuEvent(self, a0: QContextMenuEvent | None)[source]
copy()[source]
drawBands(qp, fstart, fstop)[source]
drawChart(qp: QPainter)[source]
drawData(qp: QPainter, data: list[Datapoint], color: QColor, y_function=None)[source]
drawDragbog(qp: QPainter)[source]
drawFrequencyTicks(qp)[source]
drawMarkers(qp, data=None, y_function=None)[source]
drawValues(qp: QPainter)[source]
frequencyAtPosition(x, limit=True) int[source]

Calculates the frequency at a given X-position :param limit: Determines whether frequencies outside the

currently displayed span can be returned.

Parameters:

x – The X position to calculate for.

Returns:

The frequency at the given position, if one exists or -1 otherwise. If limit is True, and the value is before or after the chart, returns minimum or maximum frequencies.

getPlotable(x, y, distantx, distanty)[source]
getXPosition(d: Datapoint) int[source]
getYPosition(d: Datapoint) int[source]
isPlotable(x, y)[source]
keyPressEvent(self, a0: QKeyEvent | None)[source]
logarithmicYAllowed() bool[source]
mouseMoveEvent(self, a0: QMouseEvent | None)[source]
paintEvent(self, a0: QPaintEvent | None)[source]
resetDisplayLimits()[source]
resizeEvent(self, a0: QResizeEvent | None)[source]
setFixedSpan(fixed_span: bool)[source]
setFixedValues(fixed_values: bool)[source]
setLogarithmicX(logarithmic: bool)[source]
setLogarithmicY(logarithmic: bool)[source]
setMaximumFrequency()[source]
setMaximumValue()[source]
setMinimumFrequency()[source]
setMinimumValue()[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

zoomTo(x1, y1, x2, y2)[source]
class NanoVNASaver.Charts.GroupDelayChart(name='', reflective=True)[source]

Bases: FrequencyChart

calc_data(data: list[Datapoint])[source]
calculateGroupDelay()[source]
copy()[source]
drawValues(qp: QPainter)[source]
draw_data(qp: QPainter, color: QColor, data: list[Datapoint], delay: list[Datapoint])[source]
getYPosition(d: Datapoint) int[source]
getYPositionFromDelay(delay: float) int[source]
setData(data)[source]
setReference(data)[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

class NanoVNASaver.Charts.InductanceChart(name='')[source]

Bases: FrequencyChart

class NanoVNASaver.Charts.LogMagChart(name='')[source]

Bases: FrequencyChart

calc_scaling() None[source]
copy()[source]
drawValues(qp: QPainter) None[source]
draw_db_lines(qp, maxValue, minValue, ticks) None[source]
draw_grid(qp)[source]
draw_swr_markers(qp) None[source]
getYPosition(d: Datapoint) int[source]
logMag(p: Datapoint) float[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

class NanoVNASaver.Charts.MagnitudeChart(name='')[source]

Bases: FrequencyChart

copy()[source]
drawValues(qp: QPainter)[source]
getYPosition(d: Datapoint) int[source]
static magnitude(p: Datapoint) float[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

class NanoVNASaver.Charts.MagnitudeZChart(name='')[source]

Bases: FrequencyChart

copy()[source]
drawValues(qp: QPainter)[source]
getYPosition(d: Datapoint) int[source]
logarithmicYAllowed() bool[source]
static magnitude(p: Datapoint) float[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

class NanoVNASaver.Charts.MagnitudeZSeriesChart(name='')[source]

Bases: MagnitudeZChart

static magnitude(p: Datapoint) float[source]
class NanoVNASaver.Charts.MagnitudeZShuntChart(name='')[source]

Bases: MagnitudeZChart

static magnitude(p: Datapoint) float[source]
class NanoVNASaver.Charts.PermeabilityChart(name='')[source]

Bases: FrequencyChart

drawChart(qp: QPainter)[source]
drawValues(qp: QPainter)[source]
getImYPosition(d: Datapoint) int[source]
getNearestMarker(x, y) Marker[source]
getReYPosition(d: Datapoint) int[source]
logarithmicYAllowed() bool[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

class NanoVNASaver.Charts.PhaseChart(name='')[source]

Bases: FrequencyChart

copy()[source]
drawValues(qp: QPainter)[source]
getYPosition(d: Datapoint) int[source]
setUnwrap(unwrap: bool)[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

class NanoVNASaver.Charts.PolarChart(name='')[source]

Bases: SquareChart

drawChart(qp: QPainter)[source]
class NanoVNASaver.Charts.QualityFactorChart(name='')[source]

Bases: FrequencyChart

drawChart(qp: QPainter)[source]
drawValues(qp: QPainter)[source]
getYPosition(d: Datapoint) int[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

class NanoVNASaver.Charts.RealImaginaryChart(name='')[source]

Bases: FrequencyChart

contextMenuEvent(self, a0: QContextMenuEvent | None)[source]
copy()[source]
drawHorizontalTicks(qp)[source]
drawValues(qp: QPainter)[source]
find_scaling()[source]
getImYPosition(d: Datapoint) int[source]
getNearestMarker(x, y) Marker | None[source]
getReYPosition(d: Datapoint) int[source]
imag_scaling_constraints(min_imag, max_imag)[source]
setFixedValues(fixed_values: bool)[source]
setMaximumImagValue()[source]
setMaximumRealValue()[source]
setMinimumImagValue()[source]
setMinimumRealValue()[source]
value(p: Datapoint) complex[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

zoomTo(x1, y1, x2, y2)[source]
class NanoVNASaver.Charts.RealImaginaryMuChart(name='')[source]

Bases: RealImaginaryChart

contextMenuEvent(self, a0: QContextMenuEvent | None)[source]
copy()[source]
drawChart(qp: QPainter)[source]
mu_r(p: Datapoint) complex[source]
setCoreArea()[source]
setCoreLength()[source]
setCoreWindings()[source]
value(p: Datapoint) complex[source]
class NanoVNASaver.Charts.RealImaginaryZChart(name='')[source]

Bases: RealImaginaryChart

contextMenuEvent(self, a0: QContextMenuEvent | None)[source]
drawChart(qp: QPainter)[source]
impedance(p: Datapoint) complex[source]
value(p: Datapoint) complex[source]
class NanoVNASaver.Charts.RealImaginaryZSeriesChart(name='')[source]

Bases: RealImaginaryZChart

impedance(p: Datapoint) complex[source]
class NanoVNASaver.Charts.RealImaginaryZShuntChart(name='')[source]

Bases: RealImaginaryZChart

impedance(p: Datapoint) complex[source]
class NanoVNASaver.Charts.SParameterChart(name='')[source]

Bases: FrequencyChart

copy()[source]
drawChart(qp: QPainter)[source]
drawValues(qp: QPainter)[source]
getImYPosition(d: Datapoint) int[source]
getReYPosition(d: Datapoint) int[source]
getYPosition(d: Datapoint) int[source]
logMag(p: Datapoint) float[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.

class NanoVNASaver.Charts.SmithChart(name='')[source]

Bases: SquareChart

drawChart(qp: QPainter) None[source]
class NanoVNASaver.Charts.SquareChart(name='')[source]

Bases: Chart

drawChart(qp: QPainter) None[source]
drawValues(qp: QPainter)[source]
draw_data(qp: QPainter, color: QColor, data: list[Datapoint], fstart: int = 0, fstop: int = 0)[source]
getXPosition(d: Datapoint) int[source]
getYPosition(d: Datapoint) int[source]
mouseMoveEvent(self, a0: QMouseEvent | None)[source]
paintEvent(self, a0: QPaintEvent | None)[source]
resizeEvent(self, a0: QResizeEvent | None)[source]
zoomTo(x1, y1, x2, y2)[source]
class NanoVNASaver.Charts.TDRChart(name)[source]

Bases: Chart

contextMenuEvent(self, a0: QContextMenuEvent | None)[source]
copy()[source]
data: list[Datapoint]
fixedSpan = False
fixedValues = False
isPlotable(x, y)[source]
lengthAtPosition(x, limit=True)[source]
markerLocation = -1
markers: list[Marker]
maxDisplayLength = 50
maxImpedance = 1000
minDisplayLength = 0
minImpedance = 0
mouseMoveEvent(self, a0: QMouseEvent | None)[source]
paintEvent(self, a0: QPaintEvent | None)[source]
reference: list[Datapoint]
resetDisplayLimits()[source]
resizeEvent(self, a0: QResizeEvent | None)[source]
setFixedSpan(fixed_span)[source]
setFixedValues(fixed_values)[source]
setMaximumImpedance()[source]
setMaximumLength()[source]
setMinimumImpedance()[source]
setMinimumLength()[source]
swrMarkers: set[float]
valueAtPosition(y)[source]
zoomTo(x1, y1, x2, y2)[source]
class NanoVNASaver.Charts.VSWRChart(name='')[source]

Bases: FrequencyChart

drawValues(qp: QPainter)[source]
getYPosition(d: Datapoint) int[source]
getYPositionFromValue(vswr) int[source]
logarithmicYAllowed() bool[source]
resetDisplayLimits()[source]
valueAtPosition(y) list[float][source]

Returns the chart-specific value(s) at the specified Y-position :param y: The Y position to calculate for. :return: A list of the values at the Y-position, either

containing a single value, or the two values for the chart from left to right Y-axis. If no value can be found, returns the empty list. If the frequency is above or below the chart, returns maximum or minimum values.