Skip to content

Commit

Permalink
add support to barplot color dict input, #224
Browse files Browse the repository at this point in the history
  • Loading branch information
zqfang committed Sep 29, 2023
1 parent ae4ac3f commit d698df1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gseapy/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d698df1

Please sign in to comment.