rc_configurator¶
-
class
rc_configurator[source]¶ Bases:
objectMagical abstract class for managing matplotlib rcParams settings, ProPlot rcParamsLong settings, and rcParamsShort “global” settings. This starts with the default settings plus user
.proplotrcoverrides. See Configuring proplot for details.Methods Summary
__getattr__(attr)Invoke
__getitem__so thatrc.keyis identical torc[key].__getitem__(key)Get rcParams, rcParamsLong, and rcParamsShort settings.
__setattr__(attr, value)Invoke
__setitem__so thatrc.key = valueis identical torc[key] = value.__setitem__(key, value)Set rcParams, rcParamsLong, and rcParamsShort settings.
category(cat[, cache])Returns a dictionary of settings belonging to the indicated category, i.e.
context(*args[, mode])Temporarily modifies settings in a
with...asblock, used by ProPlot internally but may also be useful for power users.fill(props[, cache])Returns a dictionary filled with
rcsettings, used internally to build dictionaries for updatingArtistinstances.get(key[, cache])Returns a setting.
reset()Restores settings to the initial state – ProPlot defaults, plus any user overrides in the
~/.proplotrcfile.update(*args, **kwargs)Bulk updates settings, usage is similar to python
dictobjects.