def clean(matrix, colormap=None, row_labels=None, column_labels=None): """ Visualize a dense matrix or table as a heat map. .. image:: matrix.png Parameters ---------- matrix : array-like (n,m) Two-dimensional array of matrix data row_labels : array-like (n,) Array of rows to label columns column_labels : array-like (m,) Array of strings to label columns colormap : string Specification of color map, only colorbrewer types supported numbers : boolean, optional, default=True Whether to show numbers on cells """ matrix = mat_to_array(matrix) outdict = {'matrix': matrix} outdict = add_property(outdict, colormap, 'colormap') outdict = add_property(outdict, row_labels, 'rowLabels') outdict = add_property(outdict, column_labels, 'columnLabels') return outdict
def clean(matrix, colormap=None): """ Visualize a dense matrix or table as a heat map. .. image:: matrix.png Parameters ---------- matrix : array-like Two-dimensional array of matrix data colormap : string Specification of color map, only colorbrewer types supported """ matrix = mat_to_array(matrix) outdict = {'matrix': matrix} outdict = add_property(outdict, colormap, 'colormap') return outdict