Skip to content

Precise figure sizing #519

Description

@avonmoll

I'm building a custom Gantt chart generator and need to be able to precisely control the figure AND axes sizes in order to get a matplotlib graph to line up with the Excel grid:
image

The problem is that in Plot.show() when the figure is saved, bbox_inches is set to 'tight' which basically undoes all my fine tuning of the axes position in Python. This behavior is probably desirable in most applications and situations and I'm considering just inheriting from Plot and overriding the show method. Is my situation too unique to account for in the xlwings library, or could/should the bbox_inches setting be settable by the user?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions