.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "11_demos\python_packages\seaborn\demo_jointKernel.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_11_demos_python_packages_seaborn_demo_jointKernel.py: Joint kernel =============== .. GENERATED FROM PYTHON SOURCE LINES 4-20 .. image-sg:: /11_demos/python_packages/seaborn/images/sphx_glr_demo_jointKernel_001.png :alt: demo jointKernel :srcset: /11_demos/python_packages/seaborn/images/sphx_glr_demo_jointKernel_001.png :class: sphx-glr-single-img .. code-block:: Python import seaborn as sns sns.set_theme(style="ticks") # Load the penguins dataset penguins = sns.load_dataset("penguins") # Show the joint distribution using kernel density estimation g = sns.jointplot( data=penguins, x="bill_length_mm", y="bill_depth_mm", hue="species", kind="kde", ) .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 1.275 seconds) .. _sphx_glr_download_11_demos_python_packages_seaborn_demo_jointKernel.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: demo_jointKernel.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: demo_jointKernel.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: demo_jointKernel.zip `