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):