watex.utils.plot_mlxtend_heatmap#
- watex.utils.plot_mlxtend_heatmap(df, columns=None, savefig=None, **kws)[source]#
Plot correlation matrix array as a heat map
- Parameters:
df β dataframe pandas
columns β list of features, If given, only the dataframe with that features is considered.
kws β additional keyword arguments passed to
mlxtend.plotting.heatmap()
- Returns:
mlxtend.plotting.heatmap()axes object- Example:
>>> from watex.datasets import load_hlogs >>> from watex.utils.plotutils import plot_mlxtend_heatmap >>> h=load_hlogs() >>> features = ['gamma_gamma', 'sp', 'natural_gamma', 'resistivity'] >>> plot_mlxtend_heatmap (h.frame , columns =features, cmap ='PuOr')