Exemplo n.º 1
0
        sys = stats.get_values(column + "_system")

    if timeStr.lower() == "cpu":
        return usr.avg + sys.avg
    else:
        return wall.avg


# Colors for the Cothority
# colors = [ '#4183D7','#26A65B', '#F89406', '#CF000F' ]
colorsbar = ["#c2c2ff", "#C5E1C5", "#fffaca", "#ffc2c2"]
colorsplot = ['#4183D7', '#26A65B', '#F89406', '#CF000F']

alpha = 0.9
alphabar = 1
mplot = MPlot()
legend_size = 12


def plot_show(file):
    if write_file:
        mplot.pngname = file


def read_csvs_xname(xname, *values):
    stats = []
    for a in values:
        file = a + '.csv'
        stats.append(CSVStats(file, xname))
    return stats