From 03021ae7227d5575793b6d2d7147c9a494fecdea Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 16 Oct 2021 19:42:42 -0400 Subject: [PATCH] motan: Show data filename in graph title Signed-off-by: Kevin O'Connor --- scripts/motan/motan_graph.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/motan/motan_graph.py b/scripts/motan/motan_graph.py index 6571a201..fc1dee17 100755 --- a/scripts/motan/motan_graph.py +++ b/scripts/motan/motan_graph.py @@ -17,7 +17,7 @@ except: # Graphing ###################################################################### -def plot_motion(amanager, graphs): +def plot_motion(amanager, graphs, log_prefix): # Generate data for graph in graphs: for dataset, plot_params in graph: @@ -31,7 +31,7 @@ def plot_motion(amanager, graphs): fig, rows = matplotlib.pyplot.subplots(nrows=len(graphs), sharex=True) if len(graphs) == 1: rows = [rows] - rows[0].set_title("Motion Analysis") + rows[0].set_title("Motion Analysis (%s)" % (log_prefix,)) for graph, graph_ax in zip(graphs, rows): graph_units = graph_twin_units = twin_ax = None for dataset, plot_params in graph: @@ -136,7 +136,7 @@ def main(): # Draw graph setup_matplotlib(options.output is not None) - fig = plot_motion(amanager, graphs) + fig = plot_motion(amanager, graphs, log_prefix) # Show graph if options.output is None: