If True, plot the column names of the dataframe. xticklabels, yticklabels “auto”, bool, list-like, or int, optional If True, set the Axes aspect to “equal” so each cell will be cbar_ax matplotlib Axes, optionalĪxes in which to draw the colorbar, otherwise take space from the cbar_kws dict of key, value mappings, optional linecolor color, optionalĬolor of the lines that will divide each cell. Width of the lines that will divide each cell. annot_kws dict of key, value mappings, optional String formatting code to use when adding annotations. Note that DataFrames will match on position, not index. Same shape as data, then use this to annotate the heatmap instead If True, write the data value in each cell. annot bool or rectangular dataset, optional If True and vmin or vmax are absent, the colormap range isĬomputed with robust quantiles instead of the extreme values. Using this parameter will change the default cmap if none is The value at which to center the colormap when plotting divergent data. If not provided, theĭefault will depend on whether center is set. The mapping from data values to color space. cmap matplotlib colormap name or object, or list of colors, optional Values to anchor the colormap, otherwise they are inferred from theĭata and other keyword arguments. Is provided, the index/column information will be used to label theĬolumns and rows. Parameters : data rectangular datasetĢD dataset that can be coerced into an ndarray. Is False or a separate Axes is provided to cbar_ax. This Axes space will be taken and used to plot a colormap, unless cbar This is an Axes-level function and will draw the heatmap into theĬurrently-active Axes if none is provided to the ax argument. Plot rectangular data as a color-encoded matrix. heatmap ( data, *, vmin = None, vmax = None, cmap = None, center = None, robust = False, annot = None, fmt = '.2g', annot_kws = None, linewidths = 0, linecolor = 'white', cbar = True, cbar_kws = None, cbar_ax = None, square = False, xticklabels = 'auto', yticklabels = 'auto', mask = None, ax = None, ** kwargs ) #
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |