Skip to content
Snippets Groups Projects
Commit 8221677b authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 0ab929f5
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment