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

Skip to content

Commit 2e10ffc

Browse files
committed
Docstring addition
1 parent 4239e6c commit 2e10ffc

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

lib/matplotlib/style/core.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def use(styles):
6464
"""
6565
if cbook.is_string_like(styles):
6666
styles = [styles]
67-
flattened_style = flatten_style_dict({PARENT_STYLES: styles})
67+
flattened_style = _flatten_style_dict({PARENT_STYLES: styles})
6868
mpl.rcParams.update(flattened_style)
6969

7070

@@ -119,12 +119,20 @@ def flatten_inheritance_dict(child_dict, parent_key,
119119
return output_dict
120120

121121

122-
def flatten_style_dict(style_dict):
122+
def _flatten_style_dict(style_dict):
123123
return flatten_inheritance_dict(style_dict, PARENT_STYLES, expand_parent=_expand_parent)
124124

125125

126126
def get_style_dict(style):
127-
"""Get the parameter rc of the style file"""
127+
"""Returns a dictionnary containing all the parameters from the
128+
style file.
129+
130+
Parameters
131+
----------
132+
style : str
133+
style from the default library, the personal library or any
134+
full path.
135+
"""
128136
if style in library:
129137
return library[style]
130138
else:

0 commit comments

Comments
 (0)