mplConfig.text.usetex = checkdep.usetex(mplConfig.text.usetex) def save_config(): """Save mplConfig customizations to current matplotlib.conf """ configManager.write() rcParams = RcParamsWrapper(mplConfig) rcParamsDefault = RcParamsWrapper(mplConfigDefault) # convert old matplotlibrc to new matplotlib.conf if CONVERT: from rcparams import rcParams as old_rcParams for key, val in old_rcParams.iteritems(): rcParams[key] = val save_config() print '%s converted to %s' % (cutils.get_config_file(tconfig=False), config_file) def rcdefaults(): """ Restore the default rc params - the ones that were created at matplotlib load time """ for key in rcParamsDefault.keys(): rcParams[key] = rcParamsDefault[key]
mplConfig.backend.ps.distiller.use = \ checkdep.ps_distiller(mplConfig.backend.ps.distiller.use) mplConfig.text.usetex = checkdep.usetex(mplConfig.text.usetex) def save_config(): """Save mplConfig customizations to current matplotlib.conf """ configManager.write() rcParams = RcParamsWrapper(mplConfig) rcParamsDefault = RcParamsWrapper(mplConfigDefault) # convert old matplotlibrc to new matplotlib.conf if CONVERT: from rcparams import rcParams as old_rcParams for key, val in old_rcParams.iteritems(): rcParams[key] = val save_config() print '%s converted to %s'%(cutils.get_config_file(tconfig=False), config_file) def rcdefaults(): """ Restore the default rc params - the ones that were created at matplotlib load time """ for key in rcParamsDefault.keys(): rcParams[key] = rcParamsDefault[key] ##############################################################################