Show More
@@ -214,7 +214,10 b' def find_gui_and_backend(gui=None, gui_select=None):' | |||
|
214 | 214 | # select backend based on requested gui |
|
215 | 215 | backend = backends[gui] |
|
216 | 216 | else: |
|
217 | backend = matplotlib.rcParams['backend'] | |
|
217 | # We need to read the backend from the original data structure, *not* | |
|
218 | # from mpl.rcParams, since a prior invocation of %matplotlib may have | |
|
219 | # overwritten that. | |
|
220 | backend = matplotlib.rcParamsOrig['backend'] | |
|
218 | 221 | # In this case, we need to find what the appropriate gui selection call |
|
219 | 222 | # should be for IPython, so we can activate inputhook accordingly |
|
220 | 223 | gui = backend2gui.get(backend, None) |
General Comments 0
You need to be logged in to leave comments.
Login now