def read_style_dict(cfg):
    style = {}
    # update all settings with any global settings.
    if 'global' in cfg:
        cfg_global = cfg.pop('global')
        for rc_dict in style.values():
            rc_dict.update(cfg_global)
    return update_nested_dict(style, cfg)
Return dict of styles read from config dict.
dataset/ETHPy150Open tonysyu/mpltools/mpltools/style/core.py/read_style_dict