| [ Web Proxy ] |
| Viewing: https://matplotlib.org/stable/api/_as_gen/../../gallery/scales/../misc/../../api/style_api.html | [Back] [Original] |
Section Navigation
matplotlibmatplotlib.animationmatplotlib.artistmatplotlib.axesmatplotlib.axismatplotlib.backend_basesmatplotlib.backend_managersmatplotlib.backend_toolsmatplotlib.backendsmatplotlib.backends.backend_mixedmatplotlib.backends.backend_templatematplotlib.backends.backend_aggmatplotlib.backends.backend_cairomatplotlib.backends.backend_gtk3agg, matplotlib.backends.backend_gtk3cairomatplotlib.backends.backend_gtk4agg, matplotlib.backends.backend_gtk4cairomatplotlib.backends.backend_nbaggmatplotlib.backends.backend_pdfmatplotlib.backends.backend_pgfmatplotlib.backends.backend_psmatplotlib.backends.registrymatplotlib.backends.backend_qtagg, matplotlib.backends.backend_qtcairomatplotlib.backends.backend_svgmatplotlib.backends.backend_tkagg, matplotlib.backends.backend_tkcairomatplotlib.backends.backend_webagg_corematplotlib.backends.backend_webaggmatplotlib.backends.backend_wxagg, matplotlib.backends.backend_wxcairomatplotlib.beziermatplotlib.categorymatplotlib.cbookmatplotlib.cmmatplotlib.collectionsmatplotlib.colorbarmatplotlib.colorizermatplotlib.colorsmatplotlib.containermatplotlib.contourmatplotlib.datesmatplotlib.dvireadmatplotlib.figurematplotlib.font_managermatplotlib.ft2fontmatplotlib.gridspec
matplotlib.hatchmatplotlib.imagematplotlib.insetmatplotlib.layout_enginematplotlib.legendmatplotlib.legend_handlermatplotlib.lines
matplotlib.markers
matplotlib.mathtextmatplotlib.mlabmatplotlib.offsetboxmatplotlib.patchesmatplotlib.pathmatplotlib.patheffectsmatplotlib.pyplotmatplotlib.projections
matplotlib.quiver
matplotlib.rcsetupmatplotlib.sankeymatplotlib.scalematplotlib.sphinxext.mathmplmatplotlib.sphinxext.plot_directivematplotlib.sphinxext.figmpl_directivematplotlib.sphinxext.rolesmatplotlib.spinesmatplotlib.stylematplotlib.tablematplotlib.testingmatplotlib.textmatplotlib.texmanagermatplotlib.tickermatplotlib.transformsmatplotlib.trimatplotlib.typingmatplotlib.unitsmatplotlib.widgetsmatplotlib._afmmatplotlib._apimatplotlib._docstringmatplotlib._enumsmatplotlib._type1fontmatplotlib._tight_bboxmatplotlib._tight_layoutmpl_toolkits.mplot3dmpl_toolkits.axes_grid1mpl_toolkits.axisartistpylabmatplotlib.stylematplotlib.style#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:
useSelect style sheet to override the current matplotlib settings.
contextContext manager to use a style sheet temporarily.
availableList available style sheets. Underscore-prefixed names are considered private and
not listed, though may still be accessed directly from library.
libraryA 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.
Copyright 20022012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 20122026 The Matplotlib development team.
Created using Sphinx 9.1.0.
Built from v3.11.2-1-g879ad8ebba.
Built with the PyData Sphinx Theme 0.16.1.
| Web Proxy Viewer | New URL | Original Page |