

.. _sphx_glr_tutorials_seaborn_plot_seaborn_notebook.py:


A notebook seaborn test
=======================

Just to have examples in the gallery of notebooks



.. code-block:: python

    # Author: Michael Waskom
    # License: BSD 3 clause

    from __future__ import division, absolute_import, print_function
    import numpy as np
    from scipy.stats import kendalltau
    import seaborn as sns
    import matplotlib.pyplot as plt

    sns.set(style="ticks")

    rs = np.random.RandomState(11)
    x = rs.gamma(2, size=1000)
    y = -.5 * x + rs.normal(size=1000)

    sns.jointplot(x, y, kind="hex", stat_func=kendalltau, color="#4CB391")


A new block in the notebook to have different styles




.. code-block:: python

    sns.set(style="whitegrid", palette="pastel", color_codes=True)

    # Load the example tips dataset
    tips = sns.load_dataset("tips", cache=False)

    # Draw a nested violinplot and split the violins for easier comparison
    sns.violinplot(x="day", y="total_bill", hue="sex", data=tips, split=True,
                   inner="quart", palette={"Male": "b", "Female": "y"})
    sns.despine(left=True)

**Total running time of the script:** ( 0 minutes  0.000 seconds)



.. only :: html

 .. container:: sphx-glr-footer


  .. container:: sphx-glr-download

     :download:`Download Python source code: plot_seaborn_notebook.py <plot_seaborn_notebook.py>`



  .. container:: sphx-glr-download

     :download:`Download Jupyter notebook: plot_seaborn_notebook.ipynb <plot_seaborn_notebook.ipynb>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.readthedocs.io>`_
