-
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Hi,
I'm using bottom label annotations to display selected column names.
However, the annotation text overlaps with the arrows in the current layout, and the positions of arrows seem not right. Please see the screenshot below for an example.
Here are my codes:
cmap = plt.cm.get_cmap('Spectral_r')
plt.figure(figsize=(18, 6))
col_ha2 = HeatmapAnnotation(label = anno_label(row_df_annotated.product_name_short,merge=True,
extend=False,rotation=-90,
colors=colors_dict),axis=1)
col_ha = HeatmapAnnotation(Group= anno_simple(row_df_selected.level2, cmap = 'Dark2',label=False,
legend_kws={'frameon':False,'fontsize':12}),axis=1)
cm = ClusterMapPlotter(data=tau_hat_df_selected.T,
bottom_annotation=col_ha2,
top_annotation=col_ha,
annot=annot_selected.T,
fmt=None,
annot_kws={'color':'black','fontsize':10},
col_split=row_df_selected.loc[:, ['level2']],
label=r'$\tau$',
row_dendrogram=False,
col_dendrogram=False,
show_rownames=True,
show_colnames=False,
row_names_side='left',
rasterized=True,
cmap=cmap,
legend_gap=5,
legend_hpad=2,
legend_vpad=5,
yticklabels_kws=dict(labelsize=12))
cm.cbars[0].set_label(label=r'$\tau$',fontsize=12)
cm.cbars[0].ax.tick_params(labelsize=12)
Could you advise on how to adjust the layout to avoid this? Thanks!
Metadata
Metadata
Assignees
Labels
No labels