The rcsetup module contains the default values and the validation code for customization using matplotlib's rc settings.
Each rc setting is assigned a default value and a function used to validate any attempted changes to that setting. The default values and validation functions are defined in the rcsetup module, and are used to construct the rcParams global object which stores the settings and is referenced throughout matplotlib.
These default values should be consistent with the default matplotlibrc file that actually reflects the values given here. Any additions or deletions to the parameter set listed here should also be visited to the matplotlibrc.template
in matplotlib's root source directory.
class matplotlib.rcsetup.ValidateInStrings(key, valid, ignorecase=False)
[source]
Bases: object
valid is a list of legal strings
class matplotlib.rcsetup.ValidateInterval(vmin, vmax, closedmin=True, closedmax=True)
[source]
Bases: object
Value must be in interval
matplotlib.rcsetup.cycler(*args, **kwargs)
[source]
Creates a Cycler
object much like cycler.cycler()
, but includes input validation.
Call signatures:
cycler(cycler) cycler(label=values[, label2=values2[, ...]]) cycler(label, values)
Form 1 copies a given Cycler
object.
Form 2 creates a Cycler
which cycles over one or more properties simultaneously. If multiple properties are given, their value lists must have the same length.
Form 3 creates a Cycler
for a single property. This form exists for compatibility with the original cycler. Its use is discouraged in favor of the kwarg form, i.e. cycler(label=values)
.
Parameters: |
|
---|---|
Returns: |
|
Creating a cycler for a single property:
>>> c = cycler(color=['red', 'green', 'blue'])
Creating a cycler for simultaneously cycling over multiple properties (e.g. red circle, green plus, blue cross):
>>> c = cycler(color=['red', 'green', 'blue'], ... marker=['o', '+', 'x'])
matplotlib.rcsetup.update_savefig_format(value)
[source]
matplotlib.rcsetup.validate_animation_writer_path(p)
[source]
matplotlib.rcsetup.validate_any(s)
[source]
matplotlib.rcsetup.validate_anylist(s)
matplotlib.rcsetup.validate_aspect(s)
[source]
matplotlib.rcsetup.validate_axisbelow(s)
[source]
matplotlib.rcsetup.validate_backend(s)
[source]
matplotlib.rcsetup.validate_bbox(s)
[source]
matplotlib.rcsetup.validate_bool(b)
[source]
Convert b to a boolean or raise
matplotlib.rcsetup.validate_bool_maybe_none(b)
[source]
Convert b to a boolean or raise.
matplotlib.rcsetup.validate_capstylelist(s)
matplotlib.rcsetup.validate_color(s)
[source]
Return a valid color arg.
matplotlib.rcsetup.validate_color_for_prop_cycle(s)
[source]
matplotlib.rcsetup.validate_color_or_auto(s)
[source]
matplotlib.rcsetup.validate_color_or_inherit(s)
[source]
Return a valid color arg.
matplotlib.rcsetup.validate_colorlist(s)
return a list of colorspecs
matplotlib.rcsetup.validate_cycler(s)
[source]
Return a Cycler object from a string repr or the object itself.
matplotlib.rcsetup.validate_dashlist(s)
matplotlib.rcsetup.validate_dpi(s)
[source]
Confirm s is string 'figure' or convert s to float or raise.
matplotlib.rcsetup.validate_fillstylelist(s)
matplotlib.rcsetup.validate_float(s)
[source]
Convert s to float or raise.
matplotlib.rcsetup.validate_float_or_None(s)
[source]
Convert s to float, None or raise.
matplotlib.rcsetup.validate_floatlist(s)
Convert s to float or raise.
matplotlib.rcsetup.validate_font_properties(s)
[source]
matplotlib.rcsetup.validate_fontsize(s)
[source]
matplotlib.rcsetup.validate_fontsize_None(s)
[source]
matplotlib.rcsetup.validate_fontsizelist(s)
matplotlib.rcsetup.validate_fonttype(s)
[source]
Confirm that this is a Postscript or PDF font type that we know how to convert to.
matplotlib.rcsetup.validate_hatch(s)
[source]
Validate a hatch pattern. A hatch pattern string can have any sequence of the following characters: \ / | - + * . x o O
.
matplotlib.rcsetup.validate_hatchlist(s)
Validate a hatch pattern. A hatch pattern string can have any sequence of the following characters: \ / | - + * . x o O
.
matplotlib.rcsetup.validate_hinting(s)
[source]
matplotlib.rcsetup.validate_hist_bins(s)
[source]
matplotlib.rcsetup.validate_int(s)
[source]
Convert s to int or raise.
matplotlib.rcsetup.validate_int_or_None(s)
[source]
Return None if s is None or return int(s)
, otherwise raise.
matplotlib.rcsetup.validate_joinstylelist(s)
matplotlib.rcsetup.validate_markevery(s)
[source]
Validate the markevery property of a Line2D object.
Parameters: |
|
---|---|
Returns: |
|
matplotlib.rcsetup.validate_markeverylist(s)
Validate the markevery property of a Line2D object.
Parameters: |
|
---|---|
Returns: |
|
matplotlib.rcsetup.validate_mathtext_default(s)
[source]
matplotlib.rcsetup.validate_path_exists(s)
[source]
If s is a path, return s, else False
matplotlib.rcsetup.validate_ps_distiller(s)
[source]
matplotlib.rcsetup.validate_qt4(s)
[source]
[Deprecated]
Deprecated since version 3.1:
matplotlib.rcsetup.validate_qt5(s)
[source]
[Deprecated]
Deprecated since version 3.1:
matplotlib.rcsetup.validate_sketch(s)
[source]
matplotlib.rcsetup.validate_string(s)
[source]
matplotlib.rcsetup.validate_string_or_None(s)
[source]
Convert s to string or raise.
matplotlib.rcsetup.validate_stringlist(s)
return a list
matplotlib.rcsetup.validate_svg_fonttype(s)
[source]
matplotlib.rcsetup.validate_toolbar(s)
[source]
matplotlib.rcsetup.validate_verbose(s)
[source]
[Deprecated]
Deprecated since version 3.1:
matplotlib.rcsetup.validate_webagg_address(s)
[source]
matplotlib.rcsetup.validate_whiskers(s)
[source]
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.1.1/api/rcsetup_api.html