Uh oh!
There was an error while loading. Please reload this page.
Use format() for shared subplot slice titles - #652
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
cvanelteren
commented
Mar 21, 2026
Need to fix a small bbox alignment but other than that it works. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
gepcel
commented
Mar 22, 2026
The fix messed up the spaces between rows of axes, when using shared titles with subset of axes. |
cvanelteren
commented
Mar 22, 2026
@gepcel do you have an example? |
cvanelteren
commented
Mar 22, 2026
importultraplotasuplt# Test whether ignored for bar plotsfig, ax=uplt.subplots(ncols=2, nrows=2)
ax[0, :].format(title="True")
ax[1, :].format(title="True")
uplt.show(block=1Looks good I think |
cvanelteren
commented
Mar 22, 2026
gepcel
commented
Mar 22, 2026
cvanelteren
commented
Mar 22, 2026
Thanks! Funnily enough the code works fine when index to the first row. Will investigate. |
cvanelteren
commented
Mar 22, 2026
Found the issue; it was feeding back into tight layout causing the figure to act as if the text was still there, overinflating the hspace. |
cvanelteren
commented
Mar 22, 2026
Good catch @gepcel |
Uh oh!
There was an error while loading. Please reload this page.


We should make more use of the slicing feature to format a subset and assume the user aims to share the titles. This is a move in making the
formatfunction more intuitive.Closes #650#651