8000 More robust auto-figure-resizing disabling behavior (fixes #222?) · proplot-dev/proplot@38290e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 38290e7

Browse files
committed
More robust auto-figure-resizing disabling behavior (fixes #222?)
1 parent a5d0c44 commit 38290e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

proplot/figure.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,8 @@ def auto_layout(self, renderer=None, resize=None, aspect=None, tight=None):
11051105
if tight is None:
11061106
tight = self._auto_tight
11071107
if resize is None:
1108-
resize = rc['backend'] != 'nbAgg'
1108+
backend = _not_none(rc.backend, '').lower()
1109+
resize = 'nbagg' not in backend and 'ipympl' not in backend
11091110

11101111
# Draw objects that will affect tight layout
11111112
self._draw_auto_legends_colorbars()

0 commit comments

Comments
 (0)
0