@@ -45,11 +45,19 @@ def use(style):
45
45
Parameters
46
46
----------
47
47
style : str, dict, or list
48
- str: The name of a style or a path/URL to a style file. For a list of
49
- available style names, see `style.available`.
50
- dict: Dictionary with valid key/value pairs in `matplotlib.rcParams`.
51
- list: List of style specifiers (str or dict) applied from first to
52
- last in the list.
48
+ A style specification. Valid options are:
49
+
50
+ +------+-------------------------------------------------------------+
51
+ | str | The name of a style or a path/URL to a style file. For a |
52
+ | | list of available style names, see `style.available`. |
53
+ +------+-------------------------------------------------------------+
54
+ | dict | Dictionary with valid key/value pairs for |
55
+ | | `matplotlib.rcParams`. |
56
+ +------+-------------------------------------------------------------+
57
+ | list | A list of style specifiers (str or dict) applied from first |
58
+ | | to last in the list. |
59
+ +------+-------------------------------------------------------------+
60
+
53
61
54
62
"""
55
63
if cbook .is_string_like (style ) or hasattr (style , 'keys' ):
@@ -83,11 +91,19 @@ def context(style, after_reset=False):
83
91
Parameters
84
92
----------
85
93
style : str, dict, or list
86
- str: The name of a style or a path/URL to a style file. For a list of
87
- available style names, see `style.available`.
88
- dict: Dictionary with valid key/value pairs in `matplotlib.rcParams`.
89
- list: List of style specifiers (str or dict) applied from first to
90
- last in the list.
94
+ A style specification. Valid options are:
95
+
96
+ +------+-------------------------------------------------------------+
97
+ | str | The name of a style or a path/URL to a style file. For a |
98
+ | | list of available style names, see `style.available`. |
99
+ +------+-------------------------------------------------------------+
100
+ | dict | Dictionary with valid key/value pairs for |
101
+ | | `matplotlib.rcParams`. |
102
+ +------+-------------------------------------------------------------+
103
+ | list | A list of style specifiers (str or dict) applied from first |
104
+ | | to last in the list. |
105
+ +------+-------------------------------------------------------------+
106
+
91
107
after_reset : bool
92
108
If True, apply style after resetting settings to their defaults;
93
109
otherwise, apply style on top of the current settings.
0 commit comments