Deprecated `tight_bbox` and `tight_layout` modules by oscargus · Pull Request #22134 · matplotlib/matplotlib · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/api/next_api_changes/deprecations/22134-OG.rst
6 changes: 3 additions & 3 deletions doc/api/prev_api_changes/api_changes_1.4.x.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ original location:
``drawRect`` from ``FigureCanvasQTAgg``; they were always an
implementation detail of the (preserved) ``drawRectangle()`` function.

* The function signatures of `.tight_bbox.adjust_bbox` and
`.tight_bbox.process_figure_for_rasterizing` have been changed. A new
*fixed_dpi* parameter allows for overriding the ``figure.dpi`` setting
* The function signatures of ``matplotlib.tight_bbox.adjust_bbox`` and
``matplotlib.tight_bbox.process_figure_for_rasterizing`` have been changed.
A new *fixed_dpi* parameter allows for overriding the ``figure.dpi`` setting
instead of trying to deduce the intended behaviour from the file format.

* Added support for horizontal/vertical axes padding to
Expand Down
2 changes: 1 addition & 1 deletion doc/api/prev_api_changes/api_changes_2.2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ If `.MovieWriterRegistry` can't find the requested `.MovieWriter`, a
more helpful `RuntimeError` message is now raised instead of the
previously raised `KeyError`.

`~.tight_layout.auto_adjust_subplotpars` now raises `ValueError`
``matplotlib.tight_layout.auto_adjust_subplotpars`` now raises `ValueError`
instead of `RuntimeError` when sizes of input lists don't match


Expand Down
8 changes: 4 additions & 4 deletions doc/api/prev_api_changes/api_changes_3.0.1.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
API Changes for 3.0.1
=====================

`.tight_layout.auto_adjust_subplotpars` can return ``None`` now if the new
subplotparams will collapse axes to zero width or height. This prevents
``tight_layout`` from being executed. Similarly
`.tight_layout.get_tight_layout_figure` will return None.
``matplotlib.tight_layout.auto_adjust_subplotpars`` can return ``None`` now if
the new subplotparams will collapse axes to zero width or height.
This prevents ``tight_layout`` from being executed. Similarly
``matplotlib.tight_layout.get_tight_layout_figure`` will return None.

To improve import (startup) time, private modules are now imported lazily.
These modules are no longer available at these locations:
Expand Down
85 changes: 85 additions & 0 deletions lib/matplotlib/_tight_bbox.py
Loading