Thanks, I'm actually using a specific type of clustermap (https://scvelo.readthedocs.io/scvelo.pl.heatmap.html) and when I try to add 'ax' to it I get an error: TypeError: heatmap() got multiple values for keyword argument 'ax'
How do I plot several sns.clustermap heatmaps in a single figure?
Hi All,
Is there a way to plot several clustermaps in a single matplotlib figure.
Edit: I'm specifically using https://scvelo.readthedocs.io/scvelo.pl.heatmap.html to generate the heatmap. This returns an object of type seaborn.matrix.ClusterGrid
Thanks!
• 8,181 views
•
link
2 answers
Define an ax my_ax element before, and when calling sns.clustermap use ax=my_ax as one of the parameters
f, ax = plt.subplots(figsize=(5, 6))
sns.clustermap(x="total_bill", y="tip", data=tips, ax=ax);
• 0 views
•
link
• 0 views
•
link
I'm also trying to do this and I get the same TypeError. Any other insights?
• 0 views
•
link
You can plot very complex heatmaps from data frame using python package PyComplexHeatmap: https://dingwb.github.io/PyComplexHeatmap/build/html/gallery.html
In addition, it allows you to composite multiple heatmap into one figure.
• 0 views
•
link
Log in to answer this question.




For now I've exported the plots to png files and loaded them into subplots:
Not ideal, but works..