-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a suggestion of save parameter in _chromosome_heatmap.py #148
Comments
This is a known issue with scanpy: scverse/scanpy#1508 (comment) (chromosome_heatmap internally calls scanpy.pl.heatmap) But the following should work: import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(10, 5))
infercnv.pl.chromosome_heatmap(..., ax=ax)
fig.figsave("/where/ever/heatmap.pdf") |
I tried with the suggestion, but it return error:
here is my code:
|
Sorry, I was wrong. This doesn't work because What does work is the following though: axs = cnv.pl.chromosome_heatmap(adata, groupby="cell_type", show=False)
axs["heatmap_ax"].get_figure().savefig("/path/to/plot.pdf") |
Closing this, because this is more of a scanpy issue and there's a workaround. |
Description of feature
When I want to save the heatmap with
infercnv.pl.chromosome_heatmap
, I noticed about I can't not specify the position to save the heatmap. May be thesave
parameter can be modified to better specify the position to save?The text was updated successfully, but these errors were encountered: