Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c9dd2c commit e335d12Copy full SHA for e335d12
1 file changed
lib/matplotlib/__init__.py
@@ -904,10 +904,11 @@ def use(arg, warn=True):
904
if 'matplotlib.backends' in sys.modules:
905
if warn: warnings.warn(_use_error_msg)
906
return
907
- arg = arg.lower()
908
if arg.startswith('module://'):
909
name = arg
910
else:
+ # Lowercase only non-module backend names (modules are case-sensitive)
911
+ arg = arg.lower()
912
be_parts = arg.split('.')
913
name = validate_backend(be_parts[0])
914
if len(be_parts) > 1:
0 commit comments