diff --git a/modules/util/line_plot.py b/modules/util/line_plot.py index cdcdd5c84d9f901423dff446588c0200f01e16d6..247da725a44ddc9e0ef9137224ef0aa156939f4c 100644 --- a/modules/util/line_plot.py +++ b/modules/util/line_plot.py @@ -5,7 +5,7 @@ import matplotlib.pyplot as plt barWidth = 0.10 -def do_plot(x_values, y_values, line_labels, colors, x_axis_label=None, y_axis_label=None, invert=False, flip=False): +def do_plot(x_values, y_values, line_labels, colors, x_axis_label=None, y_axis_label=None, title=None, invert=False, flip=False): num_lines = len(y_values) for k in range(num_lines): @@ -20,6 +20,9 @@ def do_plot(x_values, y_values, line_labels, colors, x_axis_label=None, y_axis_l if y_axis_label is not None: plt.ylabel(y_axis_label, fontweight='bold') + if title is not None: + plt.title(title, fontweight='bold') + if invert: plt.gca().invert_yaxis()