mindelec.vision.plot_s11

mindelec.vision.plot_s11(s11_tensor, path_image_save, legend, dpi=300)[source]

Draw s11-frequency curve and save it in path_image_save.

Parameters
  • s11_tensor (numpy.ndarray) – s11 data (shape: (dim_frequency, 2)).

  • path_image_save (str) – s11-frequency curve saved path.

  • legend (str) – the legend of s11, plotting parameters.

  • dpi (int) – plotting parameters. Default: 300.

Supported Platforms:

Ascend

Examples

>>> import numpy as np
>>> from mindelec.vision import plot_s11
>>> s11 = np.random.rand(1001, 2).astype(np.float32)
>>> s11[:, 0] = np.linspace(0, 4 * 10 ** 9, 1001)
>>> s11 = s11.astype(np.float32)
>>> s11_tensor = s11
>>> path_image_save = './result_s11'
>>> legend = 's11'
>>> dpi = 300
>>> plot_s11(s11_tensor, path_image_save, legend, dpi)