xoa.set_options¶
-
class
xoa.set_options(section=None, **options)[source]¶ Set configuration options
- Parameters
Example
# Classic: for the session In [1]: set_options('plot', cmapdiv='cmo.balance', cmappos='cmo.amp') Out[1]: <xoa.set_options at 0x7f0707cbe9a0> # With dict In [2]: opts = {"plot.cmapdiv": "cmo.balance"} In [3]: set_options(**opts) Out[3]: <xoa.set_options at 0x7f0707cbe400> # Context: temporary In [4]: with set_options('plot', cmapdiv='cmo.delta'): ...: print('within context:', get_option('plot.cmapdiv')) ...: within context: cmo.delta In [5]: print('after context:', get_option('plot.cmapdiv')) after context: cmo.balance
-
__init__(section=None, **options)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods