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

Padding of colorbar in Vector.plot() varies despite fixed pad in cax.append_axes #585

Open
rhugonnet opened this issue Jun 14, 2024 · 0 comments

Comments

@rhugonnet
Copy link
Contributor

rhugonnet commented Jun 14, 2024

I also tried passing a {"pad": "2%"} value to the legend_kwgs that are apparently passed to colorbar, without success...
The padding created by:

divider = make_axes_locatable(ax0)
cax = divider.append_axes("right", size="5%", pad="1%")

seems to generally work, except when column is used...

If we can't manage to make it work by passing an argument or defining the cax in advance, the other solution would be to re-create the colorbar after the plotting. But then we'd need to extract the vmin/vmax, other legend_kwds associated to colorbars (like we already do a bit), and it could rapidly become complex.

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

1 participant