plot_bode

autoeis.visualization.plot_bode(freq: ndarray[float], Z: ndarray[complex], fmt='.-', markersize=6, deg: bool = True, ax: Axes | None = None) tuple[Figure, Axes]

Plots the Bode plot for the impedance data.

Parameters:
  • freq (np.ndarray[float]) – Frequencies corresponding to the impedance data.

  • Z (np.ndarray[complex]) – Impedance data.

  • fmt (str, optional) – Format of the markers in the plot. Default is “.-“.

  • markersize (int, optional) – Size of the markers in the plot. Default is 6.

  • deg (bool, optional) – If True, plots the Bode plot in degrees. Default is True.

  • ax (plt.Axes, optional) – Axes to plot on. Default is None.

Returns:

Figure and axes of the plot.

Return type:

tuple[plt.Figure, plt.Axes]