Skip to content

Commit e1f5b26

Browse files
committed
Clean publication figure labels
1 parent bae11d6 commit e1f5b26

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/08_publication_figures.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def make_figure(adata):
2323
"""Create a multi-panel publication figure."""
2424
FIG_DIR.mkdir(parents=True, exist_ok=True)
2525

26-
fig = plt.figure(figsize=(18, 12))
27-
gs = gridspec.GridSpec(2, 3, figure=fig, hspace=0.4, wspace=0.45)
26+
fig = plt.figure(figsize=(16, 10))
27+
gs = gridspec.GridSpec(2, 3, figure=fig, hspace=0.3, wspace=0.35)
2828

2929
# A: UMAP by cluster
3030
ax_a = fig.add_subplot(gs[0, 0])
@@ -37,7 +37,7 @@ def make_figure(adata):
3737
present_types = adata.obs["cell_type"].cat.categories.tolist()
3838
palette = [PALETTE.get(ct, "#AAAAAA") for ct in present_types]
3939
sc.pl.umap(adata, color="cell_type", palette=palette,
40-
legend_loc="on data", legend_fontsize=6, legend_fontoutline=2,
40+
legend_loc=None,
4141
frameon=False, ax=ax_b, show=False, title="")
4242
ax_b.set_title("B Cell Types", fontsize=12, fontweight="bold", loc="left")
4343

0 commit comments

Comments
 (0)