diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-10-16 19:42:42 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-10-16 22:18:45 -0400 |
commit | 03021ae7227d5575793b6d2d7147c9a494fecdea (patch) | |
tree | 51d078b571c0f45047d32fb143f5eeaedcdffdae /scripts/motan/motan_graph.py | |
parent | ec2116b4f7da806906ab484ccf7ab836b5c319be (diff) | |
download | kutter-03021ae7227d5575793b6d2d7147c9a494fecdea.tar.gz kutter-03021ae7227d5575793b6d2d7147c9a494fecdea.tar.xz kutter-03021ae7227d5575793b6d2d7147c9a494fecdea.zip |
motan: Show data filename in graph title
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts/motan/motan_graph.py')
-rwxr-xr-x | scripts/motan/motan_graph.py | 6 |
1 files 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: |