watex.utils.plot_mlxtend_matrix#
- watex.utils.plot_mlxtend_matrix(df, columns=None, fig_size=(10, 8), alpha=0.5, savefig=None)[source]#
Visualize the pair wise correlation between the different features in the dataset in one place.
- Parameters
df – dataframe pandas
columns – list of features, If given, only the dataframe with that features is considered.
fig_size – tuple of int (width, heigh) Size of the displayed figure
alpha – figure transparency, default is
.5.
- Returns
mlxtend.plotting.scatterplotmatrix()axes object- Example
>>> from watex.datasets import load_hlogs >>> from watex.utils.plotutils import plot_mlxtend_matrix >>> import pandas as pd >>> import numpy as np >>> h=load_hlogs() >>> features = ['gamma_gamma', 'natural_gamma', 'resistivity'] >>> data = pd.DataFrame ( np.log10 (h.frame[features]), columns =features ) >>> plot_mlxtend_matrix (data, columns =features)