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

gridspec.Gridspec doesn't check for consistency in arguments #5835

Copy link
Copy link
Closed
@goretkin

Description

@goretkin
Issue body actions

If width_ratios is too small, it fails pretty late too, only when you go to add the subplot.

import matplotlib
import matplotlib.pyplot

gs = matplotlib.gridspec.GridSpec(1,2, width_ratios=[2, 1, 3], height_ratios=[3,4])
plt.gcf().add_subplot(gs[0])
plt.gcf().add_subplot(gs[1])
plt.gcf().savefig("gridspec_issue.png", facecolor="grey")

gridspec_issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issues

    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.