[Bug]: inconsistent colorbar pad for ImageGrid
with cbar_mode="single"
#28343
Labels
Milestone
ImageGrid
with cbar_mode="single"
#28343
Bug summary
ImageGrid
withcbar_mode="single"
adds theaxes_pad
between the axes and the colorbar if the colorbar is to the left or at the bottom. That seems inconsistent and unnecessary as the space can be controlled withcbar_pad
.Code for reproduction
Actual outcome
Expected outcome
I expect all colorbars to hug the axes.
Additional information
cbar_mode="single"
andcbar_location
"left"
or"bottom"
cbar_pad
param which can be used to control the distance between axes and colorbarcbar_pad
andaxes_pad
are added between the axes and the colorbarmatplotlib/lib/mpl_toolkits/axes_grid1/axes_grid.py
Lines 442 to 443 in 479bd7a
matplotlib/lib/mpl_toolkits/axes_grid1/axes_grid.py
Lines 471 to 472 in 479bd7a
matplotlib/lib/mpl_toolkits/axes_grid1/tests/test_axes_grid1.py
Line 420 in 479bd7a
Operating system
No response
Matplotlib Version
3.8.4
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
conda
The text was updated successfully, but these errors were encountered: