I use imshow() with colorbar and inset_axes to zoom into the image. After saving the pdf with savefigure() and bbox_inches='tight' the colorbar is shifted.
Very similar to bug #25176, which has already been fixed.
The problem only occurs when using the bbox_inches='tight' option in combination with inset_axes.
Activity
jklymak commented on Oct 19, 2023
You are mixing the axes_grid inset_axes (though you don't include the import) and the native indicate_inset_zoom. Suggest
which works fine with bbox_inches='tight'

Hexanders commented on Oct 19, 2023
Oh my mistake, I see it now.
Sorry for the confusion.
@jklymak thanks for the help.