def update_nested_dict(main_dict, new_dict):
    # update named styles specified by user
    for name, rc_dict in new_dict.items():
        if name in main_dict:
            main_dict[name].update(rc_dict)
        else:
            main_dict[name] = rc_dict
    return main_dict


# Load style libraries
# ====================
Computes ln(x) element-wise.
dataset/ETHPy150Open tonysyu/mpltools/mpltools/style/core.py/update_nested_dict--crossover with--dataset/ETHPy150Open jimmycallin/pydsm/pydsm/indexmatrix.py/IndexMatrix.log