class_docstr: Return a context manager for managing rc settings.
  
  Parameters
  ----------
  rc : dict, optional
      Mapping containing the rcParams to modify temporally.
  fname : str, optional
      Filename of the file containing the rcParams to use inside the rc_context.
  
  Examples
  --------
  This allows one to do::
  
      with az.rc_context(fname='pystan.rc'):
          idata = az.load_arviz_data("radon")
          az.plot_posterior(idata, var_names=["gamma"])
  
  The plot would have settings from 'screen.rc'
  
  A dictionary can also be passed to the context manager::
  
      with az.rc_context(rc={'plot.max_subplots': None}, fname='pystan.rc'):
          idata = az.load_arviz_data("radon")
          az.plot_posterior(idata, var_names=["gamma"])
  
  The 'rc' dictionary takes precedence over the settings loaded from
  'fname'. Passing a dictionary only is also valid.
class_docstr_tok: ["Return","a","context","manager","for","managing","rc","settings",".","Parameters","--","--","--","--","--","rc",":","dict",",","optional","Mapping","containing","the","rcParams","to","modify","temporally",".","fname",":","str",",","optional","Filename","of","the","file","containing","the","rcParams","to","use","inside","the","rc_context",".","Examples","--","--","--","--","This","allows","one","to","do",":",":","with","az.rc_context","(","fname='pystan.rc","'",")",":","idata","=","az.load_arviz_data","(","``","radon","''",")","az.plot_posterior","(","idata",",","var_names=","[","``","gamma","''","]",")","The","plot","would","have","settings","from","'screen.rc'","A","dictionary","can","also","be","passed","to","the","context","manager",":",":","with","az.rc_context","(","rc=","{","'plot.max_subplots","'",":","None","}",",","fname='pystan.rc","'",")",":","idata","=","az.load_arviz_data","(","``","radon","''",")","az.plot_posterior","(","idata",",","var_names=","[","``","gamma","''","]",")","The","'rc","'","dictionary","takes","precedence","over","the","settings","loaded","from","'fname","'",".","Passing","a","dictionary","only","is","also","valid","."]
docstr: Define exit method of context manager.
docstr_tok: ["Define","exit","method","of","context","manager","."]
code: def __exit__(self, exc_type, exc_value, exc_tb):
      """Define exit method of context manager."""
      rcParams.update(self._orig)
  
imports: import locale
  import logging
  import os
  import pprint
  import re
  import sys
  import warnings
  from collections.abc import MutableMapping
  from pathlib import Path
  from typing import Any, Dict
  from typing_extensions import Literal
  import numpy
label_desc: Use image node_id 3 for calling the rc_context obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_value, exc_tb) without return types