mindelec.vision.plot_s11

mindelec.vision.plot_s11(s11_tensor, path_image_save, legend, dpi=300)[源代码]

绘制s11频率曲线并将其保存在 path_image_save 中。

参数:
  • s11_tensor (numpy.ndarray) - s11数据,shape为(dim_frequency, 2)。

  • path_image_save (str) - s11频率曲线保存路径。

  • legend (str) - s11的图例,绘制参数。

  • dpi (int) - 图形每英寸的点数。默认值:300。

支持平台:

Ascend

样例:

>>> 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)