NanoVNASaver.Charts package¶
Submodules¶
NanoVNASaver.Charts.CLogMag module¶
- class NanoVNASaver.Charts.CLogMag.CombinedLogMagChart(name='')[source]¶
Bases:
LogMagChart
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
- bands: ClassVar[Any] = None¶
- 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>)¶
- getNearestMarker(x, y) NanoVNASaver.Marker.Widget.Marker | 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
- 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¶
NanoVNASaver.Charts.Frequency module¶
- class NanoVNASaver.Charts.Frequency.FrequencyChart(name)[source]¶
Bases:
Chart
- drawData(qp: QPainter, data: list[NanoVNASaver.RFTools.Datapoint], color: QColor, y_function=None)[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.
- 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.GroupDelay module¶
- class NanoVNASaver.Charts.GroupDelay.GroupDelayChart(name='', reflective=True)[source]¶
Bases:
FrequencyChart
- calc_data(data: list[NanoVNASaver.RFTools.Datapoint])[source]¶
- draw_data(qp: QPainter, color: QColor, data: list[NanoVNASaver.RFTools.Datapoint], delay: list[NanoVNASaver.RFTools.Datapoint])[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
- 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.Magnitude module¶
- class NanoVNASaver.Charts.Magnitude.MagnitudeChart(name='')[source]¶
Bases:
FrequencyChart
- 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
- 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¶
NanoVNASaver.Charts.MagnitudeZShunt module¶
NanoVNASaver.Charts.Permeability module¶
- class NanoVNASaver.Charts.Permeability.PermeabilityChart(name='')[source]¶
Bases:
FrequencyChart
- 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
- 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
NanoVNASaver.Charts.QFactor module¶
- class NanoVNASaver.Charts.QFactor.QualityFactorChart(name='')[source]¶
Bases:
FrequencyChart
- 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
- getNearestMarker(x, y) NanoVNASaver.Marker.Widget.Marker | None [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.RIMu module¶
- class NanoVNASaver.Charts.RIMu.RealImaginaryMuChart(name='')[source]¶
Bases:
RealImaginaryChart
NanoVNASaver.Charts.RIZ module¶
NanoVNASaver.Charts.RIZSeries module¶
NanoVNASaver.Charts.RIZShunt module¶
NanoVNASaver.Charts.SParam module¶
- class NanoVNASaver.Charts.SParam.SParameterChart(name='')[source]¶
Bases:
FrequencyChart
- 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
NanoVNASaver.Charts.Square module¶
NanoVNASaver.Charts.TDR module¶
NanoVNASaver.Charts.VSWR module¶
- class NanoVNASaver.Charts.VSWR.VSWRChart(name='')[source]¶
Bases:
FrequencyChart
- 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
- bands: ClassVar[Any] = None¶
- 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>)¶
- data: list[NanoVNASaver.RFTools.Datapoint]¶
- getNearestMarker(x, y) NanoVNASaver.Marker.Widget.Marker | None [source]¶
- markers: list[NanoVNASaver.Marker.Widget.Marker]¶
- 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[NanoVNASaver.RFTools.Datapoint]¶
- swrMarkers: set[float]¶
- class NanoVNASaver.Charts.CombinedLogMagChart(name='')[source]¶
Bases:
LogMagChart
- class NanoVNASaver.Charts.FrequencyChart(name)[source]¶
Bases:
Chart
- drawData(qp: QPainter, data: list[NanoVNASaver.RFTools.Datapoint], color: QColor, y_function=None)[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.
- 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.GroupDelayChart(name='', reflective=True)[source]¶
Bases:
FrequencyChart
- calc_data(data: list[NanoVNASaver.RFTools.Datapoint])[source]¶
- draw_data(qp: QPainter, color: QColor, data: list[NanoVNASaver.RFTools.Datapoint], delay: list[NanoVNASaver.RFTools.Datapoint])[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
- 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
- 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
- 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
- class NanoVNASaver.Charts.MagnitudeZShuntChart(name='')[source]¶
Bases:
MagnitudeZChart
- class NanoVNASaver.Charts.PermeabilityChart(name='')[source]¶
Bases:
FrequencyChart
- 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
- 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
- class NanoVNASaver.Charts.QualityFactorChart(name='')[source]¶
Bases:
FrequencyChart
- 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
- getNearestMarker(x, y) NanoVNASaver.Marker.Widget.Marker | None [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.RealImaginaryMuChart(name='')[source]¶
Bases:
RealImaginaryChart
- class NanoVNASaver.Charts.RealImaginaryZChart(name='')[source]¶
Bases:
RealImaginaryChart
- class NanoVNASaver.Charts.RealImaginaryZSeriesChart(name='')[source]¶
Bases:
RealImaginaryZChart
- class NanoVNASaver.Charts.RealImaginaryZShuntChart(name='')[source]¶
Bases:
RealImaginaryZChart
- class NanoVNASaver.Charts.SParameterChart(name='')[source]¶
Bases:
FrequencyChart
- 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
- class NanoVNASaver.Charts.SquareChart(name='')[source]¶
Bases:
Chart
- draw_data(qp: QPainter, color: QColor, data: list[NanoVNASaver.RFTools.Datapoint], fstart: int = 0, fstop: int = 0)[source]¶
- class NanoVNASaver.Charts.TDRChart(name)[source]¶
Bases:
Chart
- fixedSpan = False¶
- fixedValues = False¶
- markerLocation = -1¶
- maxDisplayLength = 50¶
- maxImpedance = 1000¶
- minDisplayLength = 0¶
- minImpedance = 0¶
- swrMarkers: set[float]¶
- class NanoVNASaver.Charts.VSWRChart(name='')[source]¶
Bases:
FrequencyChart
- 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.