Skip to content

Commit

Permalink
Merge pull request scverse#867 from fidelram/fix_density_title
Browse files Browse the repository at this point in the history
fix repeated title when plotting multiple panels
  • Loading branch information
fidelram authored Oct 9, 2019
2 parents be2401e + 61e6460 commit e4dd5ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scanpy/plotting/_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,11 +945,14 @@ def embedding_density(
dot_sizes[group_mask] = np.ones(sum(group_mask)) * fg_dotsize

if title is None:
title = group_name
_title = group_name
else:
_title = title

ax = embedding(
adata, basis, components=components, color=density_col_name,
color_map=color_map, norm=norm, size=dot_sizes, vmax=vmax,
vmin=vmin, save=False, title=title, ax=ax, show=False,
vmin=vmin, save=False, title=_title, ax=ax, show=False,
**kwargs,
)
axs.append(ax)
Expand Down

0 comments on commit e4dd5ee

Please sign in to comment.