Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug]:inset_axes colorbar +tight_layout raisesAttributeError #22576

Closed
@janosh

Description

@janosh

Bug summary

I think#21749 wasn't fully fixed.mpl_toolkits.axes_grid1.inset_locator.inset_axes still appears to be affected. This still throws in v3.5.1:

Code for reproduction

importmatplotlibimportmatplotlib.pyplotaspltfrommpl_toolkits.axes_grid1.inset_locatorimportinset_axesmatplotlib.__version__# > '3.5.1'fig,ax=plt.subplots(1,1)pts=ax.scatter([0,1], [0,1],c=[1,5])cax=inset_axes(ax,width="3%",height="70%")plt.colorbar(pts,cax=cax)plt.tight_layout()

Actual outcome

AttributeError:'AnchoredSizeLocator'objecthasnoattribute'get_subplotspec'

Expected outcome

No error

Additional information

No response

Operating system

No response

Matplotlib Version

3.5.1

Matplotlib Backend

module://matplotlib_inline.backend_inline

Python version

3.10.2

Jupyter version

No response

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp