diff --git a/modules/util/line_plot.py b/modules/util/line_plot.py
index 69601d2dbd11983cb380f40be5cd891e88c26aa2..eaaaa211e7bc571545b8cfdbe21df6384e4cf8a8 100644
--- a/modules/util/line_plot.py
+++ b/modules/util/line_plot.py
@@ -5,17 +5,25 @@ import matplotlib.pyplot as plt
 barWidth = 0.10
 
 
-def do_plot(x_values, y_values, y_labels, colors, x_label, invert=False):
+def do_plot(x_values, y_values, line_labels, colors, x_axis_label=None, y_axis_label=None, invert=False, flip=False):
     num_lines = len(y_values)
     npts = len(x_values)
 
     for k in range(num_lines):
-        # plt.plot(y_values[k], x_values, color=colors[k], label=y_labels[k])
-        plt.plot(x_values, y_values[k], color=colors[k], label=y_labels[k])
-    plt.xlabel(x_label, fontweight='bold')
+        if flip:
+            plt.plot(y_values[k], x_values, color=colors[k], label=line_labels[k])
+        else:
+            plt.plot(x_values, y_values[k], color=colors[k], label=line_labels[k])
+
+    if x_axis_label is not None:
+        plt.xlabel(x_axis_label, fontweight='bold')
+
+    if y_axis_label is not None:
+        plt.ylabel(y_axis_label, fontweight='bold')
 
     if invert:
         plt.gca().invert_yaxis()
+
     # create and show graphic
     plt.legend()
     plt.show()