DingWB / PyComplexHeatmap

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

Incomplete display of column name #7

Closed welyt closed 1 year ago

welyt commented 1 year ago

The picture does not display the full column name by default. I guess it may be due to occlusion (should all column names be displayed even if they are directly occluded?). I now solve this problem by increasing the width of the picture. image

DingWB commented 1 year ago

Yeah, you are right. If the width is not wide enough to show all the column labels, then you need to increase the width of the figure or decrease the font size of the column labels.

AntoineCollin commented 5 months ago

Hello, First off, thanks for the amazing package ! I have a similar issue to the one raised here except part of the rows are not showing. I have a lot of row to show so i would like to avoid increasing the size of the image. Instead, I tried reducing the fontsize of the labels with yticklabels_kws={'labelsize':5} (i also tried tiny values) but the row still don't show all labels.

image

Do you have any idea how I could force it to display every labels and I can handle their sizes so that they don't overlap then ?

Thanks !

DingWB commented 5 months ago

Hello @AntoineCollin . Thanks for your feedback, I just made some changes and have already uploaded it to pypi. Could you please uninstall and install the latest version (> 1.6.6)? See https://dingwb.github.io/PyComplexHeatmap/build/html/notebooks/advanced_usage.html#How-to-force-display-all-row/col-ticklabels?

AntoineCollin commented 5 months ago

Amazing it works great thanks a lot !