code: def apply_rcparams(self):
          
          from matplotlib import rcParams
          for key, val in self.rcParams.items():
              try:
                  rcParams[key] = val
              except Exception as e:
                  msg = ("""Setting "mpl.rcParams['{}']={}" """
                         "raised an Exception: {}")
                  raise PlotnineError(msg.format(key, val, e))
docs: Set the rcParams