.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "examples/dataset/visualization/plot_scatter_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 .. rst-class:: sphx-glr-example-title .. _sphx_glr_examples_dataset_visualization_plot_scatter_matrix.py: Scatter matrix ============== .. GENERATED FROM PYTHON SOURCE LINES 26-36 .. code-block:: Python from __future__ import annotations from gemseo import configure_logger from gemseo import create_benchmark_dataset from gemseo.post.dataset.scatter_plot_matrix import ScatterMatrix configure_logger() .. rst-class:: sphx-glr-script-out .. code-block:: none .. GENERATED FROM PYTHON SOURCE LINES 37-39 Load a dataset -------------- .. GENERATED FROM PYTHON SOURCE LINES 39-41 .. code-block:: Python iris = create_benchmark_dataset("IrisDataset") .. GENERATED FROM PYTHON SOURCE LINES 42-48 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 48-49 .. code-block:: Python ScatterMatrix(iris, classifier="specy").execute(save=False, show=True) .. image-sg:: /examples/dataset/visualization/images/sphx_glr_plot_scatter_matrix_001.png :alt: plot scatter matrix :srcset: /examples/dataset/visualization/images/sphx_glr_plot_scatter_matrix_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none [
] .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.553 seconds) .. _sphx_glr_download_examples_dataset_visualization_plot_scatter_matrix.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_scatter_matrix.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_scatter_matrix.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_