def __init__(self, mat, **kwargs):
<EOL>try:<EOL><INDENT>mat = np.array(mat.values)<EOL><DEDENT>except AttributeError:<EOL><INDENT>try:<EOL><INDENT>mat = np.array(mat)<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>if not isinstance(mat, np.ndarray):<EOL><INDENT>raise ValueError("<STR_LIT>".format(type(mat)))<EOL><DEDENT>kwargs['<STR_LIT>'] = kwargs.get('<STR_LIT>', np.amin(mat))<EOL>kwargs['<STR_LIT>'] = kwargs.get('<STR_LIT>', np.amax(mat))<EOL>kwargs['<STR_LIT>'] = kwargs.get('<STR_LIT>', '<STR_LIT>')  <EOL>kwargs['<STR_LIT>'] = kwargs.get('<STR_LIT>', <NUM_LIT>)<EOL>kwargs['<STR_LIT>'] = kwargs.get('<STR_LIT>', True)<EOL>sb.heatmap(mat, **kwargs)<EOL>
Render a color map (image) of a matrix or sequence of Matrix objects

        A color map is like a contour map except the "height" or "value" of each matrix element
        is used to select a color from a continuous spectrum of colors (for heatmap white is max and red is medium)

        Arguments:
            mat (np.matrix or np.array or list of list): the matrix to be rendered as a color map