Skip to content

fig.colorbar messes up subplots centering #5463

Closed
@anntzer

Description

@anntzer
from pylab import *
fig, axs = plt.subplots(2)
axs[0].imshow(np.random.rand(32, 32), extent=(10, 0, 0, 10))
img = axs[1].imshow(np.random.rand(32, 32), extent=(10, 0, 0, 10))
fig.colorbar(img, ax=list(axs))
plt.show()

colorbar
(click on the image to confirm that it is indeed mis-centered)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Hardhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesstatus: inactiveMarked by the “Stale” Github Actiontopic: geometry managerLayoutEngine, Constrained layout, Tight layout

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions