def plot_matplotlib()

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


def plot_matplotlib(data, title, xtitle):
    """
    Plot the data using matplotlib via pandas to either a jupyter notebook frame or GUI window
    """
    import seaborn as sb
    import matplotlib

    sb.set(style="whitegrid")
    matplotlib.rc('xtick', labelsize=12)
    matplotlib.rc('ytick', labelsize=12)
    matplotlib.rc('axes', titlesize=16)
    matplotlib.rc('axes', labelsize=12)
    matplotlib.rc('figure', titlesize=18)
    matplotlib.rc('legend', fontsize=14)

    data.plot(y=title, figsize=(16, 8), xlabel=xtitle, title=title)