Axes.context¶
-
Axes.context(*, mode=2, rc_kw=None, **kwargs)[source]¶ For internal use. Sets up temporary
rcsettings by returning the result ofcontext.- Parameters
rc_kw (dict, optional) – A dictionary containing “rc” configuration settings that will be applied to this axes. Temporarily updates the
rcobject.**kwargs – Any of three options:
A keyword arg for
Axes.format,XYAxes.format, orProjAxes.format.A global “rc” keyword arg, like
linewidthorcolor.A standard “rc” keyword arg with the dots omitted, like
landcolorinstead ofland.color.
The latter two options update the
rcobject, just likerc_kw.
- Other Parameters
mode (int, optional) – The “getitem mode”. This is used under-the-hood – you shouldn’t have to use it directly. Determines whether queries to the
rcobject will ignore rcParams. This can help prevent a massive number of unnecessary lookups when the settings haven’t been changed by the user. Seerc_configuratorfor details.- Returns
rc_configurator– Theproplot.rctools.rcobject primed for use in a “with” statement.dict – Dictionary of keyword arguments that are not
rcproperties, to be passed to theformatmethods.