def 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, ax=None, xticklabels=True, yticklabels=True, mask=None, **kwargs):
 plotter = _HeatMapper(data, vmin, vmax, cmap, center, robust, annot, fmt, annot_kws, cbar, cbar_kws, xticklabels, yticklabels, mask)
 kwargs['linewidths'] = linewidths
 kwargs['edgecolor'] = linecolor
 if (ax is None):
  ax = plt.gca()
 if square:
  ax.set_aspect('equal')
 plotter.plot(ax, cbar_ax, kwargs)
 return ax

def 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 , ax = None , xticklabels = True , yticklabels = True , mask = None , ** kwargs ) : plotter = _HeatMapper ( data , vmin , vmax , cmap , center , robust , annot , fmt , annot_kws , cbar , cbar_kws , xticklabels , yticklabels , mask ) kwargs [ 'linewidths' ] = linewidths kwargs [ 'edgecolor' ] = linecolor if ( ax is None ) : ax = plt . gca ( ) if square : ax . set_aspect ( 'equal' ) plotter . plot ( ax , cbar_ax , kwargs ) return ax
plot rectangular data as a color-encoded matrix .