绘制多个图片的结果.

def plot_profiled_all_images_table(method_list):
    """绘制多个图片的结果."""
    high_dpi_dir_path, high_dpi_file_name = "result", "high_dpi.json"
    rich_texture_dir_path, rich_texture_file_name = "result", "rich_texture.json"
    text_dir_path, text_file_name = "result", "text.json"

    image_list = ['high_dpi', 'rich_texture', 'text']
    # high_dpi_method_exec_info
    high_dpi_plot_object = PlotResult(high_dpi_dir_path, high_dpi_file_name)
    high_dpi_method_exec_info = high_dpi_plot_object.method_exec_info
    # rich_texture_method_exec_info
    rich_texture_plot_object = PlotResult(rich_texture_dir_path, rich_texture_file_name)
    rich_texture_method_exec_info = rich_texture_plot_object.method_exec_info
    # text_method_exec_info
    text_plot_object = PlotResult(text_dir_path, text_file_name)
    text_method_exec_info = text_plot_object.method_exec_info

    exec_info_list = [high_dpi_method_exec_info, rich_texture_method_exec_info, text_method_exec_info]
    # 提取对应结果:
    mem_compare_dict, cpu_compare_dict, succeed_compare_dict = {}, {}, {}
    for index, method in enumerate(method_list):
        mem_list, cpu_list, succeed_list = [], [], []
        for exec_info in exec_info_list:
            current_method_exec_info = exec_info[index]
            mem_list.append(round(current_method_exec_info["mem_max"], 2))  # MB
            # mem_list.append(round(current_method_exec_info["mem_max"] / 1024, 2))  # GB
            cpu_list.append(round(current_method_exec_info["cpu_max"], 2))
            succeed_ret = True if current_method_exec_info["result"] else False
            succeed_list.append(succeed_ret)

        mem_compare_dict.update({method: mem_list})
        cpu_compare_dict.update({method: cpu_list})
        succeed_compare_dict.update({method: succeed_list})

    color_list = get_color_list(method_list)

    # # 绘制三张表格
    # plot_compare_table(image_list, method_list, color_list, mem_compare_dict, "memory (GB)", 311)
    # plot_compare_table(image_list, method_list, color_list, cpu_compare_dict, "CPU (%)", 312)
    # plot_compare_table(image_list, method_list, color_list, succeed_compare_dict, "Result", 313)
    # plt.show()

    # 绘制两个曲线图、一个表格图：
    plot_compare_curves(image_list, method_list, color_list, mem_compare_dict, "Title: Memory (GB)", 311)
    plot_compare_curves(image_list, method_list, color_list, cpu_compare_dict, "Title: CPU (%)", 312)
    plot_compare_table(image_list, method_list, color_list, succeed_compare_dict, "Title: Result", 313)
    plt.show()