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 fe125ec commit 9deae15Copy full SHA for 9deae15
lib/matplotlib/backend_bases.py
@@ -98,19 +98,21 @@ def import_module(name):
98
}
99
100
101
-def register_backend(format, backend, description):
+def register_backend(format, backend, description=None):
102
"""
103
Register a backend for saving to a given file format.
104
105
- *format*
+ format : str
106
File extention
107
108
- *backend*
109
- Backend for handling file output (module string or canvas class)
+ backend : module string or canvas class
+ Backend for handling file output
110
111
- *description*
112
- Description of the file type
+ description : str, optional
+ Description of the file type. Defaults to an empty string
113
114
+ if description is None:
115
+ description = ''
116
_default_backends[format] = backend
117
_default_filetypes[format] = description
118
0 commit comments