Closed abearab closed 1 year ago
I guess it is the issue of ax
; you created ax
yourself but didn't pass it to the ClusterMapPlotter .plot
.
You can remove fig, ax = plt.subplots(figsize=(2 * rel,1.6 * rel))
and try:
plt.figure(figsize=(2 * rel,1.6 * rel))
plot_cm = ch.ClusterMapPlotter(
sub_mat,
legend_gap=5,legend_width=5,legend_hpad=2,legend_vpad=5,
right_annotation=col_ha,
col_dendrogram=True,
row_dendrogram=True,
vmin=-1, vmax=1,
cmap = 'BlueYellow',
verbose=False,
legend=False,
# plot=False,
# show_rownames=True,show_colnames=True
)
plt.savefig(...)
plt.show()
There are many examples on the documentation website, you can follow an example and re-organize your code.
Please let me know if you still have this kind of issue.
Sorry for late response. My issue was due to pd.Series
index issue. That should be matched with the actual heatmap data. Thanks
I have trouble using
HeatmapAnnotation
. I keep getting empty annotation... any thought?