Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Milestone
Description
Bug report
Bug summary
constrained_layout seems to place colorbars at the "extreme right" of the image. (not sure how to phrase this; see below)
Code for reproduction
f,ax=plt.subplots(2,2,constrained_layout=True)data=np.random.randn(10,10)foraainax.flat:mappable=aa.pcolormesh(data)f.colorbar(mappable,ax=ax[:,0])
Actual outcome
Expected outcome
I would like the constrained_layout version of this --- which results when settingconstrained_layout=False
in theplt.subplots
call above
Matplotlib version
- Operating system: Ubuntu 16.04
- Matplotlib version: 2.2.2
- Matplotlib backend (
print(matplotlib.get_backend())
):module://ipykernel.pylab.backend_inline
- Python version: 3.6.5
- Jupyter version (if applicable): 5.5.0
- Other libraries: