Replies: 1 comment 3 replies
-
@JesseRop, a bit hacky but how about import matplotlib.pyplot as plt
kwargs = dict(frameon=False, size=10, linewidth=1.5, add_outline='Ngn3 high EP, Pre-endocrine, Beta')
fig, ax = plt.subplots(ncols=3)
scv.pl.scatter(adata, df['Ngn3 high EP'][0], ylabel='Ngn3 high EP', ax=ax[0], size=10, linewidth=1.5, add_outline='Ngn3 high EP, Pre-endocrine, Beta')
plt.setp(ax[0].spines.values(), visible=False)
ax[0].get_legend().remove()
ax[0].xaxis.set_visible(False)
ax[0].tick_params(left=False, labelleft=False, right=False)
scv.pl.scatter(adata, df['Ngn3 high EP'][1], ax=ax[1], **kwargs)
ax[1].get_legend().remove()
scv.pl.scatter(adata, df['Ngn3 high EP'][2], legend_loc='right', ax=ax[2], **kwargs) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear developers,
Many thanks for this great tool.
Kindly inform on how I can get one legend for colour coding of the several subplots generated in this tutorial example
thanks,
Jesse
Beta Was this translation helpful? Give feedback.
All reactions