Skip to content

How can I use gridspec? #50

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

Open
mdhe1248 opened this issue Apr 21, 2025 · 0 comments
Open

How can I use gridspec? #50

mdhe1248 opened this issue Apr 21, 2025 · 0 comments

Comments

@mdhe1248
Copy link

Could anyone show me how to use gridspec?

fig = figure();
gs = fig.add_gridspec(2,2);
ax1 = fig.add_subplot(gs[0,0]); # this works
ax2 = fig.add_subplot(gs[1,0:1]); #This does not work

I get the following error:

ERROR: Python: TypeError: '<' not supported between instances of 'range' and 'int'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant