@@ -45,11 +45,19 @@ def use(style):
4545 Parameters
4646 ----------
4747 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+
5361
5462 """
5563 if cbook .is_string_like (style ) or hasattr (style , 'keys' ):
@@ -83,11 +91,19 @@ def context(style, after_reset=False):
8391 Parameters
8492 ----------
8593 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+
91107 after_reset : bool
92108 If True, apply style after resetting settings to their defaults;
93109 otherwise, apply style on top of the current settings.
0 commit comments