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

How to fix sub_plots and colorbar size issue for geographic map #26

Closed
HARSHBARDHANK94 opened this issue May 10, 2022 · 1 comment
Closed

Comments

@HARSHBARDHANK94
Copy link

Hi,
I am referring the same query from stackoverflow (https://stackoverflow.com/questions/72149875/how-to-deal-with-the-colorbar-axis-space-in-matplotlib-subplots), that I have raised there. I have plotted multiple sub_plots (7rows * 4columns) and at the end of each row I want to put colorbar. but my last column axes size compromised with colorbar axis.
Any help from this matplotlib-tutorial community!

@rougier
Copy link
Owner

rougier commented May 12, 2022

You can use a Gridspect and specify realtive width. Just add a fifth column for colorbars with smaller relative width.

@rougier rougier closed this as completed May 12, 2022
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