-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to control the size of the heatmap section to make more space for the legends section? #100
Comments
Thanks for reporting this. It has already been fixed. Please also let me know whether it works or not. |
No, there's no change. It can't work. |
It works on my side. |
Hi @muzier9 , In default, if there is only one column of legend, the legend width will be estimated automatically, but if there is more than 1 column of legend (because the figure height is too small), the estimated legend width may not be correct. So, there are two solutions: Please test both of the above two methods and let me know the result. |
Can you share your code and data with me? @muzier9 |
I test with this example data, and it works (https://dingwb.github.io/PyComplexHeatmap/build/html/notebooks/composite_heatmaps.html) Can you try a larger |
I have sent the code and test data to you by email. Can you check it? I changed the legend_width and it didn't work. |
I know what the problem is. The ide I used before is Pycharm, I changed it to the one you use Jupyter and tried it again, and it can be successfully modified. But I want to use Pycharm for window display graphics, do you have any good ideas? |
Just save it to pdf and the PDF should be fine plt.savefig("test.pdf", bbox_inches='tight')
plt.show() |
Yes! The saved pdf displays very well. I also wonder if there is any way to make the window display complete like pdf? |
No idea. You can explore it or search for it on Google about the pycharm. |
Thank you very much. These are very useful to me. |
I just released a new version (1.8.1); you can install it using |
OK. I will use the new version. |
Whether it is a single heatmap or a double heatmap, sometimes the space of legends does not fully display all the legends content.
I've also noticed this in the PyComplexHeatmap document example.
![image](https://private-user-images.githubusercontent.com/86709515/388330952-05859009-51fe-4271-abaa-69a4f6887c2b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzcyMzksIm5iZiI6MTczOTE3NjkzOSwicGF0aCI6Ii84NjcwOTUxNS8zODgzMzA5NTItMDU4NTkwMDktNTFmZS00MjcxLWFiYWEtNjlhNGY2ODg3YzJiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA4NDIxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ2YjQ2YzRmZDM5Y2E3ZjMzY2Q5MDY0YjIyMGYxYWUzMDcyZjU2MjMwNDUxYjYyNmE0MTYwZDdmOTU4MTcyNDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.kYXvwqpErXdvm20cpsZ-LtxErT2wBTL-f1FHxXSUPcY)
The text was updated successfully, but these errors were encountered: