-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
I'm using faceting and the add_colorbar=True argument along with cbar_kwargs. This triggers the following error message:
ValueError: cbar_ax and cbar_kwargs can't be used with add_colorbar=False.
I searched the facetgrid.py module and found the following lines:
func_kwargs = kwargs.copy()
func_kwargs.update(cmap_params)
func_kwargs.update({'add_colorbar': False, 'add_labels': False})I realized that if add_colorbar is True, then the facet function draws one colorbar for each subplot. My initial intention was providing cbar_kwargs to reduce the whitespace between the colorbar en the right edge of the plot.
Is there any way to fix this?