def mkplot()

in source/benchmark-sample/emr-benchmark.py [0:0]


def mkplot(queries, key, fs_protocols, filename, get_name_func):
    mkres(queries, key, fs_protocols, filename, get_name_func)
    title = '%s %s unit(sec)' % (key, ' vs '.join(fs_protocols))
    color = ' '.join(COLORS.get(t, 'magenta') for t in fs_protocols)
    sh(' '.join([
        TERMGRAPH_BIN,
        filename,
        ('--color %s' % color) if len(fs_protocols) > 1 else '',
        '--title "%s"' % title,
    ]))