You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
share='labels' is disabled after formatting individual subplots in UltraPlot 2.7.0 #833
Has the behavior of share='labels' with individual ax.format() calls changed between UltraPlot 2.5.0 and 2.7.0?
My existing multi-panel figure showed shared x/y labels with 2.5.0. After upgrading to 2.7.0, each subplot shows its own labels. I can reproduce the sharing-state change without my project code or data.
Immediately after subplots(), both x and y have level: 1 and labels: True. After the individual format() calls, both become level: 0 and labels: False; the spanning labels are disabled as well.
Expected behavior
I expected the identical axis-title strings to remain shared, as they appeared in my figure made with 2.5.0. Is this an intentional change? If so, what is the recommended migration for figures that set titles and other formatting on each subplot?
Formatting the common labels at figure/grid level appears to work around the problem, but I would like to understand whether the original usage should still be supported.
Environment
UltraPlot: 2.7.0
Python: 3.12.11
Matplotlib: 3.10.5
OS: Windows
I have not rerun this exact minimal example under 2.5.0; the 2.5.0 comparison is based on my previously generated figure.
Yes it has. It is assumed that when you index into a specific axes you want to break sharing and it will update its own x/y label. This is caused by the x/y setter in the loop.
Activity
cvanelteren commentedon Oct 2, 2026
Yes it has. It is assumed that when you index into a specific axes you want to break sharing and it will update its own x/y label. This is caused by the x/y setter in the loop.
cvanelteren commentedon Oct 2, 2026
The change is outlined here: #817
cvanelteren commentedon Oct 2, 2026
not sure what you wanted to achieve but I think some of it is still possible as: