Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
goretkin opened this issue Jan 12, 2016 · 1 comment
Closed

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

goretkin opened this issue Jan 12, 2016 · 1 comment
Labels
Difficulty: Easy https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues
Milestone

Comments

@goretkin
Copy link
Contributor

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

@tacaswell tacaswell added this to the proposed next point release (2.1) milestone Jan 12, 2016
@tacaswell tacaswell added the Difficulty: Easy https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues label Jan 12, 2016
@jenshnielsen
Copy link
Member

closed by #5892

@QuLogic QuLogic modified the milestones: next major release (2.0), proposed next point release (2.1) Jan 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty: Easy https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues
Projects
None yet
Development

No branches or pull requests

4 participants