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

Appearance settings

Zero size figure use case #17093

Copy link
Copy link
Closed
Closed
Copy link
@Abbath

Description

@Abbath
Issue body actions

Bug report

Bug summary
I use matplotlib + PyQt5. The figure is placed inside a QSplitter (a standard Qt widget that consists of several vertical or horizontal parts which can be resized by handles between those parts) . When a part of QSplitter shrinks to a zero size it automatically resizes the widget it contains. Matplotlib raises an error as was mentioned in #16687.

Actual outcome

ValueError: figure size must be positive finite not [17.45  0.  ]

Expected outcome

A zero height figure.

Matplotlib version

  • Operating system: Kubuntu 19.10
  • Matplotlib version: >=3.2.0 (installed by pip)
  • Matplotlib backend: Qt5Agg
  • Python version: 3.6.9
  • Other libraries: PyQt5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.