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

ImageGrid bug when using inline backend #12370

Closed
@ezatterin

Description

@ezatterin

Bug report

Bug summary

TheImageGrid class seems to not behave correctly since the upgrade to matplotlib3.0.0 when theinline backend is used in a Jupyter notebook: the resulting subplots fail to arrange in a grid and are placed on top of eachother. The correct behaviour is reproduced if using thenotebook oripympl backends. Thanks!

Code for reproduction

importmatplotlib.pyplotaspltfrommpl_toolkits.axes_grid1importImageGridimportnumpyasnpim=np.arange(100)im.shape=10,10fig=plt.figure(1, (4.,4.))grid=ImageGrid(fig,111,nrows_ncols=(2,2),axes_pad=0.1,                   )foriinrange(4):grid[i].imshow(im)grid[i].set_title('test {0}{0}'.format(i))plt.show()

Actual outcome
image

Expected outcome

image

Matplotlib version

  • Operating system: Debian 9
  • Matplotlib version: 3.0.0
  • Matplotlib backend:inline
  • Python version: 3.5.3
  • Jupyter version (if applicable): 4.4.0
  • Other libraries:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp