Skip to content

Commit

Permalink
Fixed extra x-label issue
Browse files Browse the repository at this point in the history
  • Loading branch information
szabogtamas authored and grst committed Mar 28, 2020
1 parent a6dd54f commit 6efed26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scirpy/_plotting/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ def bar(
-------
Axes object
"""
# If it is a bar plor, x labels are the tick labels, no additional label is needed
if style_kws['xlab'] == style_kws['ylab']:
style_kws['xlab'] = ''
if ax is None:
ax = _init_ax(fig_kws)
ax = data.plot.bar(ax=ax, stacked=stacked)
Expand Down

0 comments on commit 6efed26

Please sign in to comment.