Skip to content

Commit a0ecc03

Browse files
committed
Fix bug with 'filled' panels
1 parent 32d3386 commit a0ecc03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proplot/axes/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,11 +876,11 @@ def _add_guide_panel(self, loc='fill', align='center', length=0, **kwargs):
876876
# WARNING: Hide content but 1) do not use ax.set_visible(False) so that
877877
# tight layout will include legend and colorbar and 2) do not use
878878
# ax.clear() so that top panel title and a-b-c label can remain.
879+
bbox = _align_bbox(align, length)
879880
if loc == 'fill':
880881
ax = self
881882
elif loc in ('left', 'right', 'top', 'bottom'):
882883
ax = None
883-
bbox = _align_bbox(align, length)
884884
for pax in self._panel_dict[loc]:
885885
if not pax._panel_hidden or align in pax._panel_align:
886886
continue

0 commit comments

Comments
 (0)