Skip to content

Feature request: use with subplots #3

@arthurmloureiro

Description

@arthurmloureiro

autosize() is simply magical! But I am struggling to get it working with plt.subplots in matplotlib.

My script goes like:

fig, axis = plt.subplots(figsize=(6,6), ncols=4, nrows=4)
for i in range(0, 4):
            for j in range(0, 4):
            # a class that makes plots in certain axis:
           gec.PlotClsHDP(i, j, ax=axis[i,j], **kwargs)
autosize(fig)
plt.show()

but the result is the following:
Screenshot 2022-01-19 at 18 21 20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions