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

Skip to content

Commit bd1646f

Browse files
committed
ENH: allow matplotlib.use after getbackend
1 parent 20ed033 commit bd1646f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ def __exit__(self, exc_type, exc_value, exc_tb):
12921292
self.__fallback()
12931293

12941294

1295-
def use(arg, warn=True, force=False):
1295+
def use(arg, warn=False, force=True):
12961296
"""
12971297
Set the matplotlib backend to one of the known backends.
12981298
@@ -1318,11 +1318,11 @@ def use(arg, warn=True, force=False):
13181318
If True, warn if this is called after pyplot has been imported
13191319
and a backend is set up.
13201320
1321-
defaults to True
1321+
defaults to False
13221322
13231323
force : bool, optional
13241324
If True, attempt to switch the backend. This defaults to
1325-
False.
1325+
True.
13261326
13271327
See Also
13281328
--------

0 commit comments

Comments
 (0)