.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "glr_examples/view/plot_scattering_features.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_scattering_features.py: =================================== Plot scattering features =================================== visualizes correlation of two or more features with bivariate and univariate graphs. .. GENERATED FROM PYTHON SOURCE LINES 8-11 .. code-block:: Python # Author: L.Kouadio # Licence: BSD-3-clause .. GENERATED FROM PYTHON SOURCE LINES 12-45 .. code-block:: Python from watex.view.plot import QuickPlot from watex.datasets import load_bagoue data = load_bagoue ().frame qkObj = QuickPlot(lc='b', sns_style ='darkgrid', fig_title='geol vs level of water inrush (m) ', xlabel='Level of water inrush (lwi) in meters', ylabel='Flow rate in m3/h' ) qkObj.tname='flow' # target the DC-flow rate prediction dataset qkObj.mapflow=True # to hold category FR0, FR1 etc.. qkObj.fig_size=(7, 5) qkObj.fit(data) marker_list= ['o','s','P', 'H'] markers_dict = {key:mv for key, mv in zip( list ( dict(qkObj.data ['geol'].value_counts( normalize=True)).keys()), marker_list)} sns_pkws={'markers':markers_dict, 'sizes':(20, 200), "hue":'geol', 'style':'geol', "palette":'deep', 'legend':'full', # "hue_norm":(0,7) } regpl_kws = {'col':'flow', 'hue':'lwi', 'style':'geol', 'kind':'scatter' } qkObj.scatteringfeatures(features=['lwi', 'flow'], relplot_kws=regpl_kws, **sns_pkws, ) .. rst-class:: sphx-glr-horizontal * .. image-sg:: /glr_examples/view/images/sphx_glr_plot_scattering_features_001.png :alt: geol vs level of water inrush (m) :srcset: /glr_examples/view/images/sphx_glr_plot_scattering_features_001.png :class: sphx-glr-multi-img * .. image-sg:: /glr_examples/view/images/sphx_glr_plot_scattering_features_002.png :alt: flow = FR2, flow = FR0, flow = FR1, flow = FR3 :srcset: /glr_examples/view/images/sphx_glr_plot_scattering_features_002.png :class: sphx-glr-multi-img .. rst-class:: sphx-glr-script-out .. code-block:: none QuickPlot(savefig= None, fig_num= 1, fig_size= (7, 5), ... , classes= None, tname= flow, mapflow= True) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.124 seconds) .. _sphx_glr_download_glr_examples_view_plot_scattering_features.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/view/plot_scattering_features.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_scattering_features.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_scattering_features.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_