Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1e8788d

Browse files
tacaswellanntzer
authored andcommitted
FIX: when resolving the auto-backend also update rcParamsOrig
1 parent adf696f commit 1e8788d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
from matplotlib.backend_bases import FigureCanvasBase
4040
from matplotlib.figure import Figure, figaspect
4141
from matplotlib.gridspec import GridSpec
42-
from matplotlib import rcParams, rcParamsDefault, get_backend
42+
from matplotlib import rcParams, rcParamsDefault, get_backend, rcParamsOrig
4343
from matplotlib import rc_context
4444
from matplotlib.rcsetup import interactive_bk as _interactive_bk
4545
from matplotlib.artist import getp, get, Artist
@@ -217,6 +217,7 @@ def switch_backend(newbackend):
217217
except ImportError:
218218
continue
219219
else:
220+
rcParamsOrig['backend'] = candidate
220221
return
221222

222223
backend_name = (

0 commit comments

Comments
 (0)