Hello
I am trying to learn how to add elements to scanpy plots for example, adding a title to a heatmap. Is there a way to do this?
from matplotlib import pyplot as plt
marker_genes_dict = [
“EPCAM”,“KRT8”,“KRT9”
]
sc.tl.dendrogram(adata_epi_subset, ‘leiden’, n_pcs=23)
ax1 = sc.pl.heatmap(adata_epi_subset, marker_genes_dict, groupby=‘leiden’, show_gene_labels=False, vmin=-4, vmax=4, cmap=‘RdBu_r’, dendrogram=True, use_raw=True, swap_axes=True, figsize=(5,5))
#ax1.set(title=‘Test’, ylabel=‘Test2’)
#ax1.title(“z”)
AttributeError: ‘NoneType’ object has no attribute ‘title’