Skip to content

How can I use gridspec? #50

Description

@mdhe1248

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions