def plotCoef(beta, norm, lambdau, df, dev, label, xvar, xlab, ylab, **options):
    import matplotlib.pyplot as plt

    which = nonzeroCoef(beta)
    idwhich = [i for i in range(len(which)) if which[i] == True]
    nwhich = len(idwhich)
    if nwhich == 0:
        raise ValueError('No plot produced since all coefficients are zero')
    elif nwhich == 1:
        raise ValueError('1 or less nonzero coefficients; glmnet plot is not meaningful')