.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/dataset/plot_scatter_matrix.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_dataset_plot_scatter_matrix.py: Plot - Scatter matrix ===================== .. GENERATED FROM PYTHON SOURCE LINES 28-37 .. code-block:: default from __future__ import division, unicode_literals from matplotlib import pyplot as plt from gemseo.api import configure_logger, load_dataset configure_logger() .. rst-class:: sphx-glr-script-out Out: .. code-block:: none .. GENERATED FROM PYTHON SOURCE LINES 38-40 Load a dataset -------------- .. GENERATED FROM PYTHON SOURCE LINES 40-42 .. code-block:: default iris = load_dataset("IrisDataset") .. GENERATED FROM PYTHON SOURCE LINES 43-49 Plot scatter matrix ------------------- We can use the :class:`.ScatterMatrix` plot where each non-diagonal block represents the samples according to the x- and y- coordinates names while the diagonal ones approximate the probability distributions of the variables, using either an histogram or a kernel-density estimator. .. GENERATED FROM PYTHON SOURCE LINES 49-52 .. code-block:: default iris.plot("ScatterMatrix", classifier="specy", kde=True, show=False) # Workaround for HTML rendering, instead of ``show=True`` plt.show() .. image:: /examples/dataset/images/sphx_glr_plot_scatter_matrix_001.png :alt: plot scatter matrix :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out Out: .. code-block:: none /home/docs/checkouts/readthedocs.org/user_builds/gemseo/conda/3.2.0/lib/python3.8/site-packages/gemseo/post/dataset/scatter_plot_matrix.py:135: FutureWarning: In a future version of pandas all arguments of DataFrame.drop except for the argument 'labels' will be keyword-only dataframe = dataframe.drop(varname, 1) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.829 seconds) .. _sphx_glr_download_examples_dataset_plot_scatter_matrix.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_scatter_matrix.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_scatter_matrix.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_