From ee28eefa8f745d1cd7c2169eb248dd4e09eaf2ff Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 2 Feb 2023 13:54:24 -0600 Subject: [PATCH] snapshot... --- modules/util/bar_plot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/util/bar_plot.py b/modules/util/bar_plot.py index b7017f8f..9f8967b4 100644 --- a/modules/util/bar_plot.py +++ b/modules/util/bar_plot.py @@ -2,6 +2,10 @@ import numpy as np import matplotlib.pyplot as plt +# Example +# do_plot(['5', '10', '15', '20', '30', '40', '60', '80', '100', '120', '140', '160'], [values, values_bt, values_bt_frefl], ['OPD', 'BT+OPD', 'BT+REFL+OPD'], +# ['green', 'blue', 'black'], title='OPD SRES Estimation Model Comparison', xlabel='OPD', ylabel='MAE %', barWidth=0.3) + def do_plot(group_names, group_values, value_labels, bar_colors, title=None, xlabel=None, ylabel=None, ylim=None, barWidth=0.1): num_groups = len(group_names) num_bars = len(group_values) -- GitLab