z_to_xy
- pysmithchart.utils.z_to_xy(z)[source]
Converts input data to separate x (real) and y (imaginary) arrays.
- Parameters:
z (array-like or scalar) –
If z is a real or complex number, returns its real and imaginary parts.
If z is an array-like object of real or complex numbers, splits it into two arrays: real (x) and imaginary (y).
If z is already in a 2D array with shape (2, N), it assumes it is [x, y].
- Returns:
tuple – Two arrays (x, y) representing the real and imaginary parts.