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

Issue when adding a colorbar #32

Open
pvernant opened this issue Nov 18, 2019 · 2 comments
Open

Issue when adding a colorbar #32

pvernant opened this issue Nov 18, 2019 · 2 comments

Comments

@pvernant
Copy link

Hi,

When adding a colorbar, the annotations around the grid try to encompass the grid and the colorbar leading to something strange. Am I missing something ?

Thanks.
Phil

image

@joferkington
Copy link
Owner

This used to work with older versions of matplotlib. It seems some things have changed in the meantime. I'll have a fix soon. Sorry about that, and thanks for the report!

@robgeotech
Copy link

robgeotech commented May 7, 2020

@pvernant
I found a work around to this.... it involved adding a separate axis for the colorbar into the plot

cbaxes = fig.add_axes([0.05, 0.2, 0.02, 0.6]) #Add additional axis for colorbar
plt.colorbar(cbname, cax = cbaxes, shrink = 0.8)

T_GXD015

See the original answer at this link...
https://stackoverflow.com/questions/13310594/positioning-the-colorbar

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

3 participants