learn-python/contrib/plotting-visualization/seaborn-intro.md

1.6 KiB

Seaborn is a Python data visualization library based on Matplotlib. It provides a high-level interface for drawing attractive and informative statistical graphics.

Seaborn Installation

Before installing Matplotlib, ensure you have Python installed on your system. You can download and install Python from the official Python website.

Below are the steps to install and setup Seaborn:

  1. Open your terminal or command prompt and run the following command to install Seaborn using pip:
pip install seaborn
  1. The basic invocation of pip will install seaborn and, if necessary, its mandatory dependencies. It is possible to include optional dependencies that give access to a few advanced features:
pip install seaborn[stats]
  1. The library is also included as part of the Anaconda distribution, and it can be installed with conda:
conda install seaborn
  1. As the main Anaconda repository can be slow to add new releases, you may prefer using the conda-forge channel:
conda install seaborn -c conda-forge

Dependencies

Supported Python versions

  • Python 3.8+

Mandatory Dependencies

Optional Dependencies

  • statsmodels for advanced regression plots
  • scipy for clustering matrices and some advanced options
  • fastcluster for faster clustering of large matrices