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

Skip to content

Commit b0db83e

Browse files
committed
MNT: move pylab_setup with rest of imports
Now that the backend resolution is done in `pylab_setup` instead of at module import time this does not need to be imported after the call to _backend_selection.
1 parent d2c9e35 commit b0db83e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
Locator, IndexLocator, FixedLocator, NullLocator,\
6666
LinearLocator, LogLocator, AutoLocator, MultipleLocator,\
6767
MaxNLocator
68-
68+
from matplotlib.backends import pylab_setup
6969

7070
## Backend detection ##
7171
def _backend_selection():
@@ -110,7 +110,6 @@ def _backend_selection():
110110

111111
## Global ##
112112

113-
from matplotlib.backends import pylab_setup
114113
_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
115114

116115
_IP_REGISTERED = None

0 commit comments

Comments
 (0)