PolarTranslate
- class pysmithchart.polar_transform.PolarTranslate(axes, pad, font_size, *args, **kwargs)[source]
Bases:
BasePolarTransformTransformation for translating points radially outward from the center of the Smith chart.
This transformation moves points away from the center of the Smith chart (typically at [0.5, 0.5] in axis coordinates) by a specified padding distance. The y-coordinate translation includes an additional adjustment based on the font size.
Methods Summary
inverted()Return the inverse transformation.
transform_non_affine(values)Apply the non-affine polar translation transformation.
Methods Documentation
- inverted()[source]
Return the inverse transformation.
The inverse transformation moves points radially inward toward the center of the Smith chart, reversing the effect of the outward translation applied by this transformation.
- Returns:
PolarTranslateInverse – An instance of the inverse transformation.
- transform_non_affine(values)[source]
Apply the non-affine polar translation transformation.
This method translates points radially outward from the center of the Smith chart by a specified padding distance. For the y-axis, an additional shift proportional to the font size is applied.
The center of the Smith chart is assumed to be at [0.5, 0.5] in axis coordinates. For the y-coordinate, the translation is pad + 0.5 * font_size.
- Parameters:
values (array-like) – A single point (x, y) or a list of points to transform.
- Returns:
list or tuple – The transformed points, translated outward from the center.