##// END OF EJS Templates
Switch correctly to the user's default matplotlib backend after inline....
Fernando Perez -
Show More
@@ -214,7 +214,10 b' def find_gui_and_backend(gui=None, gui_select=None):'
214 # select backend based on requested gui
214 # select backend based on requested gui
215 backend = backends[gui]
215 backend = backends[gui]
216 else:
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 # In this case, we need to find what the appropriate gui selection call
221 # In this case, we need to find what the appropriate gui selection call
219 # should be for IPython, so we can activate inputhook accordingly
222 # should be for IPython, so we can activate inputhook accordingly
220 gui = backend2gui.get(backend, None)
223 gui = backend2gui.get(backend, None)
General Comments 0
You need to be logged in to leave comments. Login now