8000 Recompute figsize-dependent parameters on resize · Issue #5824 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Recompute figsize-dependent parameters on resize #5824
Closed
@anntzer

Description

@anntzer

Edit: See #5824 (comment) for the doc related issue.

Currently, applying tight_layout and resizing the figure do not commute (e.g., after subplots(2); tight_layout() and a manual maximization of the figure size, applying tight_layout again changes the margins). This is basically due to the fact that certain paddings (and text sizes) are in absolute units, which is fairly reasonable.

However, it would be nice if an option was available to add a callback to figure resize events to auto-re-tightlayout when that happens.

The following part is solved by the yet-to-be-merged #5772.
This kind of feature may become even more useful now that #5588 (number of ticks determined from physical length of axis) has been merged, as the number of ticks should, well, also be adjusted when the figure is resized (or rather, the option to do so should be (easily) available).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0