.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_data_analysis/graphics/plot_visualize_pairs.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_auto_data_analysis_graphics_plot_visualize_pairs.py: Visualize pairs =============== .. GENERATED FROM PYTHON SOURCE LINES 7-8 In this example we are going to a visualize a multidimensional sample by drawing each pair of 2-d marginal clouds. .. GENERATED FROM PYTHON SOURCE LINES 10-15 .. code-block:: default import openturns as ot import openturns.viewer as viewer from matplotlib import pylab as plt ot.Log.Show(ot.Log.NONE) .. GENERATED FROM PYTHON SOURCE LINES 16-17 Create data to visualize .. GENERATED FROM PYTHON SOURCE LINES 17-23 .. code-block:: default R = ot.CorrelationMatrix(3) for i in range(1, 3): R[i, i - 1] = -0.4 distribution = ot.Normal([0.] * 3, [5.] * 3, R) sample = distribution.getSample(200) .. GENERATED FROM PYTHON SOURCE LINES 24-25 Create cloud pairs graphs .. GENERATED FROM PYTHON SOURCE LINES 25-29 .. code-block:: default graph = ot.Graph("Cloud pairs graph", " ", " ", True, "") graph = ot.VisualTest.DrawPairs(sample) view = viewer.View(graph) plt.show() .. image-sg:: /auto_data_analysis/graphics/images/sphx_glr_plot_visualize_pairs_001.png :alt: plot visualize pairs :srcset: /auto_data_analysis/graphics/images/sphx_glr_plot_visualize_pairs_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.181 seconds) .. _sphx_glr_download_auto_data_analysis_graphics_plot_visualize_pairs.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_visualize_pairs.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_visualize_pairs.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_