MoebiusTransform
- class pysmithchart.moebius_transform.MoebiusTransform(axes, *args, **kwargs)[source]
Bases:
BaseMoebiusTransformTransform points and paths into Smith chart data space.
This class implements the Möbius transformation required to map Cartesian coordinates to the Smith chart’s complex data space. It supports point transformations and path transformations for visualizing data on the Smith chart.
Methods Summary
inverted()Return the inverse Möbius transformation.
transform_non_affine(values)Apply the non-affine Möbius transformation to input data.
Transform a path using the Möbius transformation.
Methods Documentation
- inverted()[source]
Return the inverse Möbius transformation.
This method provides the inverse transformation for mapping points or paths back from the Smith chart’s data space to Cartesian coordinates.
- Returns:
SmithAxes.InvertedMoebiusTransform – The inverted transformation instance.
Example
>>> transform = MoebiusTransform(axes) >>> inverted_transform = transform.inverted()
- transform_non_affine(values)[source]
Apply the non-affine Möbius transformation to input data.
- Parameters:
values (array-like) – The input data to transform. Can be a single point (x, y) or an iterable of points.
- Returns:
list or tuple – The transformed points in Smith chart data space.
- transform_path_non_affine(path)[source]
Transform a path using the Möbius transformation.
This uses path._interpolation identify if the is a x or y gridline.
This method generates arcs based on the Möbius transformation.
The method supports linear interpolation (linetype=1) for non-gridline paths.
- Parameters:
path (matplotlib.path.Path) – The input path to transform.
- Returns:
matplotlib.path.Path – The transformed path in Smith chart data space.