esptest.iperf_utility.line_chart module

esptest.iperf_utility.line_chart.draw_line_chart_basic(file_name, title, y_data, x_data=None, x_label='x', y_label='y', x_scale=True, y_scale=True, show_diff_tooltip=False)[source]

Draw line chart and save to file.

Parameters:
  • file_name (str) – line chart render file name

  • title (str) – title of the chart

  • y_data (Sequence[Dict[str, float]]) – list of chart data, format eg: [{‘y1’: 1, ‘y2’: 1}, {‘y1’: 2, ‘y2’: 1}]

  • x_data (Optional[Sequence[float]], optional) – x data. Defaults to “range(len(y_data))”.

  • x_label (str, optional) – x label name. Defaults to ‘x’.

  • y_label (str, optional) – y label name. Defaults to ‘y’.

  • x_scale (bool, optional) – x scale. Defaults to True.

  • y_scale (bool, optional) – y scale name. Defaults to True.

  • show_diff_tooltip (bool, optional) – show diff in tooltip. Defaults to False.

Return type:

None