Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Shorter api change explanation
  • Loading branch information
joshbarrass committed Oct 19, 2022
commit e584e8f1de310f2f39986d85e2a665789a1a562e
13 changes: 6 additions & 7 deletions doc/api/next_api_changes/behavior/24189-JB.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
``fig.subplot_mosaic`` no longer passes the ``gridspec_kw`` args to nested gridspecs.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Previously, the ``gridspec_kw`` dictionary was passed to the nested
gridspecs, as well as the outer gridspec. This caused errors with many
options, such as the ``"width_ratios"`` and ``"height_ratios"``
options if the inner layout was incompatible with either of these
ratios. This dictionary is no longer passed to the inner layouts, and
users are directed by the docstring to construct the layout manually
if the inner layouts require any of these args.
For nested `.Figure.subplot_mosaic` layouts, *gridspec_kw* arguments
are not necessarily compatible between nest levels. This dictionary
is no longer passed to the inner layouts. Users who need to modify
*gridspec_kw* at multiple levels should use `.Figure.subfigure` to get
nesting, and construct the inner layouts with `.Figure.subplots` or
`.Figure.subplot_mosaic`.