Plot ex-matrix#

visualizes the features correlation as a matrix array.

# Author: L.Kouadio
# Licence: BSD-3-clause

mlxtend package needs to be install to take advantages of this plot. Use pip for installation as pip install mlxtend

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)
plot ex matrix
(<Figure size 1000x800 with 9 Axes>, array([[<AxesSubplot:xlabel='gamma_gamma', ylabel='Count'>,
        <AxesSubplot:>, <AxesSubplot:>],
       [<AxesSubplot:xlabel='natural_gamma', ylabel='gamma_gamma'>,
        <AxesSubplot:xlabel='natural_gamma', ylabel='Count'>,
        <AxesSubplot:>],
       [<AxesSubplot:xlabel='resistivity', ylabel='gamma_gamma'>,
        <AxesSubplot:xlabel='resistivity', ylabel='natural_gamma'>,
        <AxesSubplot:xlabel='resistivity', ylabel='Count'>]], dtype=object))

Total running time of the script: ( 0 minutes 0.474 seconds)

Gallery generated by Sphinx-Gallery