DingWB / PyComplexHeatmap

PyComplexHeatmap: A Python package to plot complex heatmap (clustermap)
https://dingwb.github.io/PyComplexHeatmap/
MIT License
257 stars 28 forks source link

set heatmap title #22

Closed welyt closed 1 year ago

welyt commented 1 year ago

How to set a title of heatmap?

DingWB commented 1 year ago

This is a good question. Setting the title in PyComplexHeatmap is easy, just like setting the title for other python plots (using ax.set_title). You need to get the main ax and call ax.set_title, such as cm.ax.set_title("title"). You can refer to this example (not sure whether you need to clear the cache of your browser to see the latest changes).