> For the complete documentation index, see [llms.txt](https://vecco-insight.gitbook.io/crash-visualization/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vecco-insight.gitbook.io/crash-visualization/seaborn/untitled-3/4.5.5-joint-plot.md).

# 4.5.5 Joint plot

Seaborn’s `jointplot` displays a relationship between 2 variables (bivariate) as well as 1D profiles (univariate) in the margins. The **multivariate normal distribution** is a nice tool to demonstrate this type of plot as it is sampling from a multidimensional Gaussian and there is natural clustering.

Draw a plot of two variables with bivariate and univariate graphs.

### 1. Scatter Histogram Plot <a href="#two-dimensional-histograms-and-binnings" id="two-dimensional-histograms-and-binnings"></a>

```
sns.jointplot(x='S1', y='S2', data=df,  color = 'dodgerblue')
```

![](https://998709212-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MB-ky7fVqjeXA6EcAbW%2F-MBiaq1zggWTJg9Leu9c%2F-MBiaxhIFojsU5B30ni9%2Fdownload.png?alt=media\&token=3d6a6832-7a8f-4a26-92a0-d40940a062a8)

### 2. Density Histogram Plot

It is also possible to use the kernel density estimation procedure described above to visualize a bivariate distribution.

```
sns.jointplot('S1', 'S2', data = df, kind='kde', color = 'dodgerblue')
```

![](https://998709212-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MB-ky7fVqjeXA6EcAbW%2F-MBiVwJncWX1oHpkxUt8%2F-MBiYJnAwL2gvMXBtmIb%2Fjointplot%201.png?alt=media\&token=9810a13b-024b-4f46-b2d3-e67ac10b6698)

### 3. Hex Histogram Plot

A bivariate analog of a histogram is known as a “Hexbin” plot because it shows the counts of observations that fall within hexagonal bins. This plot works best with relatively large datasets.

```
sns.jointplot('S1', 'S2', data = df, kind='hex', color = 'dodgerblue')
```

![](https://998709212-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MB-ky7fVqjeXA6EcAbW%2F-MBiVwJncWX1oHpkxUt8%2F-MBiYtRrLd3SSOPxTxq8%2Fjointhex.png?alt=media\&token=33a059d2-8798-4a9e-909f-1b204cd761a0)
