def plot_heatmaps()

in src/graphing/plotting.py [0:0]


def plot_heatmaps(
    gc_event_dataframes,
    dimensions = None,
    group_by=None,
    filter_by=None,
    labels=None,
    column="Duration_milliseconds",
    column_timing = None, 
    frequency_ticks = None
    ):
    from src.graphing.heatmap import get_heatmap_data, plot_heatmap
    timestamp_groups, datapoint_groups, labels, _, _ = filter_and_group(
        gc_event_dataframes, group_by, filter_by, labels, column, None, column_timing,
    )

    heatmap_list, dimensions = get_heatmap_data(timestamp_groups, datapoint_groups, labels, dimensions)
    for heatmap, label in zip(heatmap_list, labels):
        if heatmap.size != 0 and dimensions:
           graph = plot_heatmap(heatmap, dimensions, frequency_ticks) # Set the last value to TRUE to see labels of frequency
           graph.set_title("Latency during runtime: " +  label)