DingWB / PyComplexHeatmap

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

How to remove arrows for anno_label #68

Closed mtvector closed 2 months ago

mtvector commented 3 months ago

I'm wondering how to remove the arrows from anno_label and just show the labels alone? I've tried changing values for the arrowprops argument and relpos but whatever I do I can't get rid of the lines. I can't find anything in the docs or the source to help but would love to be able to do this. Thanks!

DingWB commented 3 months ago

Hello @mtvector ,

This is a good question. I just made a small change to the source code. Please install the developmental version from GitHub (pip install git+https://github.com/DingWB/PyComplexHeatmap). To remove the arrow, add the following parameter to the anno_label:

arrowprops = dict(visible=False)
DingWB commented 3 months ago

I upgraded the package to 1.7.0, please install 1.7.0 and see here for example about how to remove arrow. In this example, the arrow in the anno_label of column annotation is removed using custom parameter arrowprops.

mtvector commented 3 months ago

That's fantastic, thank you for fixing this so quickly! I have to say this package is awesome and is the foundation for the main figure in my paper!

DingWB commented 3 months ago

I am happy to hear that. @mtvector I would appreciate it if you could cite the paper in your manuscript. About how to cite, please see here