Skip to content
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

Adjusting width/height of heatmap? #61

Closed
racng opened this issue Jan 19, 2024 · 1 comment
Closed

Adjusting width/height of heatmap? #61

racng opened this issue Jan 19, 2024 · 1 comment

Comments

@racng
Copy link

racng commented Jan 19, 2024

Is there a way to adjust the width and height of the heatmap?
I have tried to create a figure with plt.figure(figsize=(3,5)) before calling ClusterMapPlotter to make the heatmap skinnier. However, this forces the legend to get cut off, even when I save the figure with bbox_inches='tight'.

@DingWB
Copy link
Owner

DingWB commented Jan 19, 2024

The width and height of the heatmap are determined by the figsize.
I guess the cutoff of the legend might be caused by different dpi in plt.show, if you save the figure into pdf and open the pdf, it should be fine.
You can also paste your code and I can have a better understanding and look into it.

@racng racng closed this as completed Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants