def plot_terminal()

in perfrunbook/utilities/measure_and_plot_basic_sysstat_stats.py [0:0]


def plot_terminal(data, title, xlabel, yrange):
    """
    Plot data to the terminal using plotext
    """
    import plotext as plt
    x = data.index.tolist()
    y = data[title].tolist()

    plt.scatter(x, y)
    plt.title(title)
    plt.xlabel(xlabel)
    plt.ylim(*yrange)
    plt.plot_size(100, 30)
    plt.show()