.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "glr_examples/view/plot_scatter.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_scatter.py: ================================================= Plot scatterring features ================================================= shows shows the relationship between two numerical features. .. GENERATED FROM PYTHON SOURCE LINES 8-11 .. code-block:: Python # Author: L.Kouadio # Licence: BSD-3-clause .. GENERATED FROM PYTHON SOURCE LINES 12-25 .. code-block:: Python import matplotlib.pyplot as plt plt.style.use ('classic') from watex.datasets import fetch_data from watex.view import ExPlot data = fetch_data ('bagoue original').get('data=dfy1') # we will use the naive_imputer in bi-impute mode to fix existing # NaN from watex.utils import naive_imputer data = naive_imputer(data, mode ='bi-impute') p= ExPlot(tname='flow', fig_size =(7, 5)).fit(data) ExPlot(tname='flow', fig_size =(7, 5), sns_style = 'whitegrid').fit(data).plotscatter ( xname ='sfi', yname='magnitude' ) .. image-sg:: /glr_examples/view/images/sphx_glr_plot_scatter_001.png :alt: plot scatter :srcset: /glr_examples/view/images/sphx_glr_plot_scatter_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none <'ExPlot':xname='sfi', yname='magnitude' , tname='flow'> .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.207 seconds) .. _sphx_glr_download_glr_examples_view_plot_scatter.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_scatter.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_scatter.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_scatter.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_