From 15e3cbbda5d0dc80fde9b2cf0d6bce9c889228a5 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Fri, 11 Jun 2021 12:44:01 -0500
Subject: [PATCH] minor

---
 modules/util/bar_plot.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/modules/util/bar_plot.py b/modules/util/bar_plot.py
index 85d98c5a..dd982bd7 100644
--- a/modules/util/bar_plot.py
+++ b/modules/util/bar_plot.py
@@ -1,11 +1,8 @@
 import numpy as np
 import matplotlib.pyplot as plt
- 
-# set width of bar
-barWidth = 0.10
 
 
-def do_plot(group_names, group_values, value_labels, bar_colors, xlabel):
+def do_plot(group_names, group_values, value_labels, bar_colors, xlabel, ylabel, barWidth=0.1):
     num_groups = len(group_names)
     num_bars = len(group_values)
 
@@ -21,7 +18,8 @@ def do_plot(group_names, group_values, value_labels, bar_colors, xlabel):
     plt.xlabel(xlabel, fontweight='bold')
     plt.xticks([r + barWidth for r in range(num_groups)], group_names)
 
-    plt.ylabel('count', fontweight='bold')
+    if ylabel is not None:
+        plt.ylabel('count', fontweight='bold')
 
     # Create legend & Show graphic
     plt.legend()
-- 
GitLab