-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
[Bug]: inset_locator is broken when used with subfigures #24589
Copy link
Copy link
Closed
Labels
Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!status: has patchpatch suggested, PR still neededpatch suggested, PR still neededtopic: mpl_toolkit
Milestone
Metadata
Metadata
Assignees
Labels
Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!status: has patchpatch suggested, PR still neededpatch suggested, PR still neededtopic: mpl_toolkit
Bug summary
When using inset_locator functions in subfigures, the plots are not placed correctly. Adapting this demo
https://matplotlib.org/stable/gallery/axes_grid1/demo_colorbar_of_inset_axes.html
to use subfigures shows incorrect plots.
Code for reproduction
Actual outcome
Expected outcome
Something more similar to https://matplotlib.org/stable/gallery/axes_grid1/demo_colorbar_of_inset_axes.html
Additional information
No response
Operating system
OS/X
Matplotlib Version
3.6.1
Matplotlib Backend
module://matplotlib_inline.backend_inline
Python version
No response
Jupyter version
No response
Installation
pip