.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "glr_examples/view/plot_dendroheat.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_view_plot_dendroheat.py: ================================================= Plot dendrogram combined with heatmap ================================================= visualizes combined dendrogram and heatmap .. GENERATED FROM PYTHON SOURCE LINES 8-11 .. code-block:: default # Author: L.Kouadio # Licence: BSD-3-clause .. GENERATED FROM PYTHON SOURCE LINES 12-13 * Plot using random data .. GENERATED FROM PYTHON SOURCE LINES 13-28 .. code-block:: default import numpy as np import pandas as pd from watex.view.mlplot import plotDendroheat np.random.seed(123) variables =['gamma_gamma', 'sp', 'resistivity'] ; labels =['k_0', 'k_1', 'k_2', 'k_3', 'k_4'] X= np.random.random_sample ([5,3]) *10 df =pd.DataFrame (X, columns =variables, index =labels) plotDendroheat (df ) # (2) -> Use Bagoue data # from watex.datasets import load_bagoue # X, y = load_bagoue (as_frame=True ) # X =X[['magnitude', 'power', 'sfi']].astype(float) # convert to float # plotDendroheat (X ) .. image-sg:: /glr_examples/view/images/sphx_glr_plot_dendroheat_001.png :alt: plot dendroheat :srcset: /glr_examples/view/images/sphx_glr_plot_dendroheat_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.196 seconds) .. _sphx_glr_download_glr_examples_view_plot_dendroheat.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/master?urlpath=lab/tree/notebooks/glr_examples/view/plot_dendroheat.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_dendroheat.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_dendroheat.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_