Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug]: QT5Agg gui crashes when using Figure Options (if more than 1 axis is present) #23103

Closed
@raphaelquast

Description

@raphaelquast

Bug summary

this is a follow-up for #22543

to summarize:

The QT gui window crashes and becomes completely irresponsive if I click on the "figure-options" button
for a figure containing more than 1 axes.

  • the issue ONLY happens in interactive mode. with plt.ioff() all works as expected.
  • the issue happens in a "plain" python console
  • the issue does NOT occur in a "plain" IPython console
    • (however it does appear in the Spyder IDE using a IPython QT console)

I checked and explicitly using plt.show(block=True/False) or a plain plt.show() does not help.

mpl_issue

Code for reproduction

# clicking on the "figure options" button on one of the following figures crashes the gui:
import matplotlib.pyplot as plt
plt.ion()
f, ax = plt.subplots(2)
# >> now edit the axis limits in the gui

import matplotlib.pyplot as plt
plt.ion()
f, ax = plt.subplots()
ax2 = ax.twinx()
# >> now edit the axis limits in the gui

Actual outcome

gui crashes

Expected outcome

gui remains responsive

Additional information

No response

Operating system

Windows

Matplotlib Version

3.5.2

Matplotlib Backend

QT5Agg

Python version

3.7.12

Jupyter version

No response

Installation

conda

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions