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]: subfigure artists not drawn interactively #28384

Closed
@rcomer

Description

@rcomer

Bug summary

When artists are added to a subfigure in interactive mode, they do not appear until I force a draw by resizing the window.

Code for reproduction

$ipython--matplotlib=qtPython3.12.3|packagedbyconda-forge| (main,Apr152024,18:38:13) [GCC12.3.0]Type'copyright','credits'or'license'formoreinformationIPython8.24.0--AnenhancedInteractivePython.Type'?'forhelp.In [1]:importmatplotlib.pyplotaspltIn [2]:fig=plt.figure()In [3]:sfig1,sfig2=fig.subfigures(ncols=2)In [4]:sfig2.suptitle("My Title")Out[4]:Text(0.5,0.98,'My Title')In [5]:ax=sfig1.subplots()In [6]:ax.plot([1,3,2])Out[6]: [<matplotlib.lines.Line2Dat0x73a220908ce0>]

Actual outcome

Apparently empty figure
image

Expected outcome

If I resize the window, the artists appear
image

Additional information

No response

Operating system

Ubuntu

Matplotlib Version

main

Matplotlib Backend

QtAgg and TkAgg

Python version

3.12.3

Jupyter version

No response

Installation

git checkout

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