.. 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_probabilistic_modeling_copulas_plot_create_copula.py: Create a copula =============== In this example we are going to create a Normal copula from a correlation matrix. .. code-block:: default from __future__ import print_function import openturns as ot import openturns.viewer as viewer from matplotlib import pylab as plt ot.Log.Show(ot.Log.NONE) create the distribution .. code-block:: default R = ot.CorrelationMatrix(3) R[0, 1] = 0.25 R[1, 2] = 0.25 copula = ot.NormalCopula(R) print(copula) .. rst-class:: sphx-glr-script-out Out: .. code-block:: none NormalCopula(R = [[ 1 0.25 0 ] [ 0.25 1 0.25 ] [ 0 0.25 1 ]]) .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.001 seconds) .. _sphx_glr_download_auto_probabilistic_modeling_copulas_plot_create_copula.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_create_copula.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_create_copula.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_