Skip to content

Commit 428227d

Browse files
committed
Fix issue where suplabel settings aren't updated
1 parent fe4ab50 commit 428227d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

proplot/figure.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,8 +1318,12 @@ def _update_super_labels(self, side, labels, **kwargs):
13181318
# WARNING: In case users added labels then changed the subplot geometry we
13191319
# have to remove labels whose axes don't match the current 'align' axes.
13201320
axs = self._get_align_axes(side)
1321-
if not labels or not axs:
1321+
if not axs:
13221322
return # occurs if called while adding axes
1323+
if not labels:
1324+
labels = [None for _ in axs] # indicates that text should not be updated
1325+
if not kw and all(_ is None for _ in labels):
1326+
return # nothing to update
13231327
if len(labels) != len(axs):
13241328
raise ValueError(
13251329
f'Got {len(labels)} {side} labels but found {len(axs)} axes '

0 commit comments

Comments
 (0)