We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bae11d6 commit e1f5b26Copy full SHA for e1f5b26
1 file changed
scripts/08_publication_figures.py
@@ -23,8 +23,8 @@ def make_figure(adata):
23
"""Create a multi-panel publication figure."""
24
FIG_DIR.mkdir(parents=True, exist_ok=True)
25
26
- fig = plt.figure(figsize=(18, 12))
27
- gs = gridspec.GridSpec(2, 3, figure=fig, hspace=0.4, wspace=0.45)
+ fig = plt.figure(figsize=(16, 10))
+ gs = gridspec.GridSpec(2, 3, figure=fig, hspace=0.3, wspace=0.35)
28
29
# A: UMAP by cluster
30
ax_a = fig.add_subplot(gs[0, 0])
@@ -37,7 +37,7 @@ def make_figure(adata):
37
present_types = adata.obs["cell_type"].cat.categories.tolist()
38
palette = [PALETTE.get(ct, "#AAAAAA") for ct in present_types]
39
sc.pl.umap(adata, color="cell_type", palette=palette,
40
- legend_loc="on data", legend_fontsize=6, legend_fontoutline=2,
+ legend_loc=None,
41
frameon=False, ax=ax_b, show=False, title="")
42
ax_b.set_title("B Cell Types", fontsize=12, fontweight="bold", loc="left")
43
0 commit comments