Skip to content

Use bbox_inches="tight" in savefig #235

@choldgraf

Description

@choldgraf

Right here

fig.savefig(current_fig, **kwargs)

I think it would be good to use bbox_inches="tight". This will make sure that the saved figure is fit to the data contained within it. Otherwise you often accidentally get text that's cut off. It's also consistent with what happens when figures get rendered in the notebook. Friendly to a PR that adds this flag?

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