Axes.context¶
-
Axes.
context
(*, mode=2, rc_kw=None, **kwargs)[source]¶ For internal use. Sets up temporary
rc
settings 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
rc
object.**kwargs – Any of three options:
A keyword arg for
Axes.format
,XYAxes.format
, orProjAxes.format
.A global “rc” keyword arg, like
linewidth
orcolor
.A standard “rc” keyword arg with the dots omitted, like
landcolor
instead ofland.color
.
The latter two options update the
rc
object, 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
rc
object will ignore rcParams. This can help prevent a massive number of unnecessary lookups when the settings haven’t been changed by the user. Seerc_configurator
for details.- Returns
rc_configurator
– Theproplot.rctools.rc
object primed for use in a “with” statement.dict – Dictionary of keyword arguments that are not
rc
properties, to be passed to theformat
methods.