From d698df1b578a00a2ff115c2098f3b74c786f1995 Mon Sep 17 00:00:00 2001 From: zqfang Date: Fri, 29 Sep 2023 12:57:00 -0700 Subject: [PATCH] add support to barplot color dict input, #224 --- gseapy/plot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gseapy/plot.py b/gseapy/plot.py index 9280935..d528d53 100644 --- a/gseapy/plot.py +++ b/gseapy/plot.py @@ -974,6 +974,7 @@ def barh(self, color=None, group=None, ax=None): bar.xaxis.set_major_locator(MaxNLocator(nbins=5, integer=True)) # _colors = self._parse_colors(color=color) + colors = _colors # remove old legend first bar.legend_.remove() if (group is not None) and (group in self.data.columns):