| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Styles are predefined sets of rcParams that define the visual appearance of a plot.
Customizing Matplotlib with style sheets and rcParams describes the mechanism and usage of styles.
The Style sheets reference gives an overview of the builtin styles.
Core functions and attributes for the matplotlib style library:
Select style sheet to override the current matplotlib settings.
Context manager to use a style sheet temporarily.
List available style sheets. Underscore-prefixed names are considered private and not listed, though may still be accessed directly from library.
A dictionary of style names and matplotlib settings.
Context manager for using style settings temporarily.
A style specification. Valid options are:
One of the style names in style.available (a builtin style or a style installed in the user library path).
A dotted name of the form "package.style_name"; in that case, "package" should be an importable Python package name, e.g. at /path/to/package/__init__.py; the loaded style file is /path/to/package/style_name.mplstyle. (Style files in subpackages are likewise supported.)
The path or URL to a style file, which gets loaded by rc_params_from_file.
A mapping of key/value pairs for matplotlib.rcParams.
The path to a style file, which gets loaded by rc_params_from_file.
A list of style specifiers (str, Path or dict), which are applied from first to last in the list.
If True, apply style after resetting settings to their defaults; otherwise, apply style on top of the current settings.
Use Matplotlib style settings from a style specification.
The style name of 'default' is reserved for reverting back to the default style settings.
Note
This updates the rcParams with the settings from the style. rcParams not defined in the style are kept.
A style specification. Valid options are:
One of the style names in style.available (a builtin style or a style installed in the user library path).
A dotted name of the form "package.style_name"; in that case, "package" should be an importable Python package name, e.g. at /path/to/package/__init__.py; the loaded style file is /path/to/package/style_name.mplstyle. (Style files in subpackages are likewise supported.)
The path or URL to a style file, which gets loaded by rc_params_from_file.
A mapping of key/value pairs for matplotlib.rcParams.
The path to a style file, which gets loaded by rc_params_from_file.
A list of style specifiers (str, Path or dict), which are applied from first to last in the list.
Notes
The following rcParams are not related to style and will be ignored if found in a style specification:
backend
backend_fallback
date.epoch
docstring.hardcopy
figure.max_open_warning
figure.raise_window
interactive
savefig.directory
timezone
tk.window_focus
toolbar
webagg.address
webagg.open_in_browser
webagg.port
webagg.port_retries
A dict mapping from style name to rcParams defining that style.
This is meant to be read-only. Use reload_library to update.
List of the names of the available styles.
This is meant to be read-only. Use reload_library to update.
| Back | FazBrowse Home | New Git URL |