# Tag seaborn

### Seaborn-Introduction

As per Seaborn’s official website, they state,

“If matplotlib “tries to make easy things easy and hard things possible”, seaborn tries to make a well-defined set of hard things easy too”

So we can say seaborn is an amazing python data visualization library built on top of the matplotlib.

#### Why one should you Seaborn instead of matplotlib?

• Seaborn comes with a large number of high-level interfaces and customized themes where matplotlib lacks as it’s not easy to figure out the settings that makes plots attractive.
• Matplotlib functions don’t work well with dataframes, whereas seaborn does.

#### Installation:

To install the latest release of seaborn, you can use pip.

pip install seaborn

You can also use conda to install the latest version of seaborn

conda install seaborn

### Seaborn-Categorical Data Plots

Now let’s discuss using seaborn to plot categorical data! There are a few main plot types for this:

• factorplot
• boxplot
• violinplot
• stripplot
• swarmplot
• barplot
• countplot

Let’s go through examples of each!

### Seaborn- Matrix Plot

Matrix plots allow you to plot data as color-encoded matrices and can also be used to indicate clusters within the data (later in the machine learning section we will learn how to formally cluster data).

So in this article we will deal with basically two plots as per follow:

1. Heatmaps:- A heat map (or heatmap) is a graphical representation of data where values are depicted by color. Heat maps make it easy to visualize complex data and understand it at a glance. To use a heatmap the data should be in a matrix form i.e the index name and the column name must match in some way ­so that the data that we fill inside the cells are relevant.
2. Cluster maps:- Cluster maps uses hierarchical clustering. It performs the clustering based on the similarity of the rows and columns.

Let’s begin by exploring seaborn’s heatmap and clutermap

### Seaborn-Grids

Grids are general types of plots that allow you to map plot types to rows and columns of a grid, this helps you create similar plots separated by features.

In this post we will discuss about following plots:

1. Pair Grid
2. Pair plots
3. Facet Grid
4. Joint Grid

Lets see how to plot these graph with the help of python seaborn