.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "glr_examples/utils/plot_ex_matrix.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code or to run this example in your browser via Binder .. rst-class:: sphx-glr-example-title .. _sphx_glr_glr_examples_utils_plot_ex_matrix.py: ====================================================== Plot ex-matrix ====================================================== visualizes the features correlation as a matrix array. .. GENERATED FROM PYTHON SOURCE LINES 8-11 .. code-block:: Python # Author: L.Kouadio # Licence: BSD-3-clause .. GENERATED FROM PYTHON SOURCE LINES 12-14 `mlxtend` package needs to be install to take advantages of this plot. Use pip for installation as `pip install mlxtend` .. GENERATED FROM PYTHON SOURCE LINES 14-23 .. code-block:: Python 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) .. image-sg:: /glr_examples/utils/images/sphx_glr_plot_ex_matrix_001.png :alt: plot ex matrix :srcset: /glr_examples/utils/images/sphx_glr_plot_ex_matrix_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none (
, array([[, , ], [, , ], [, , ]], dtype=object)) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.528 seconds) .. _sphx_glr_download_glr_examples_utils_plot_ex_matrix.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: binder-badge .. image:: images/binder_badge_logo.svg :target: https://mybinder.org/v2/gh/watex/watex/0.3.X?urlpath=lab/tree/notebooks/glr_examples/utils/plot_ex_matrix.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_ex_matrix.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_ex_matrix.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_