rc_configurator¶
-
class
rc_configurator(local=True)[source]¶ Bases:
objectMagical abstract class for managing matplotlib rcParams and additional ProPlot rcParamsLong and rcParamsShort settings. When initialized, this loads defaults settings plus any user overrides in the
~/.proplotrcfile. See therctoolsdocumentation for details.- Parameters
local (bool, optional) – Whether to load overrides from local and user
.proplotrcfile(s). Default isTrue.
Methods Summary
__getattr__(attr)Pass the attribute to
__getitem__and return the result.__getitem__(key)Return an rcParams, rcParamsLong, or rcParamsShort setting.
__setattr__(attr, value)Pass the attribute and value to
__setitem__.__setitem__(key, value)Modify an rcParams, rcParamsLong, and rcParamsShort setting(s).
category(cat, *[, trimcat, context])Return a dictionary of settings beginning with the substring
cat + '.'.context(*args[, mode])Temporarily modify the rc settings in a “with as” block.
dict()Return a raw dictionary of all settings.
fill(props, *[, context])Return a dictionary filled with settings whose names match the string values in the input dictionary.
get(key, *[, context])Return a single setting.
items()Return an iterator that loops over all setting names and values.
keys()Return an iterator that loops over all setting names.
reset(**kwargs)Reset the configurator to its initial state.
update(*args, **kwargs)Update several settings at once with a dictionary and/or keyword arguments.
values()Return an iterator that loops over all setting values.