> 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-5/4.2.2-lollipop-plot.md).

# 4.2.2 Boxplot

In descriptive statistics, a box plot or **boxplot** is a method for graphically depicting groups of numerical data through their quartiles.&#x20;

Box plot describes data distribution with 5 measures. Generally,  these five numbers illustrate a lot of information about the distribution of a variable.

![](/files/-MBWDxV_t166UxDjQhck)

{% hint style="info" %}
**Interquartile range (IQR)**: 25th to 75th percentile
{% endhint %}

* **minimum** (Q1 - 1.5 \* IQR)
* **first quartile** (Q1/ 25th percentile),&#x20;
* **median** (50th percentile)
* **third quartile**(Q3 / 75th percentile)&#x20;
* **maximum.** (Q1 + 1.5 \* IQR)

```
sns.set(style="ticks",font_scale=1.3 )
​sns.boxplot(x="day", y="total_bill", hue="smoker", palette=["b", "c"], data=tips)            sns.despine(offset=5, trim=True)plt.legend(bbox_to_anchor=(1.05, 1), loc=2)
```

![](https://gblobscdn.gitbook.com/assets%2F-MB-ky7fVqjeXA6EcAbW%2F-MBW716XUDcupfd_nzFb%2F-MBWCxopHdbLXmQW8EwG%2FBoxplot.png?alt=media\&token=b3f7c018-761b-486e-9e29-67fde5763e35)

```
sns.boxenplot(x="day", y="total_bill", hue="time", palette=["b", "r"], data=tips)            
sns.despine(offset=10, trim=True)plt.legend(bbox_to_anchor=(1.05, 1), loc=2)
```

![](https://gblobscdn.gitbook.com/assets%2F-MB-ky7fVqjeXA6EcAbW%2F-MBW716XUDcupfd_nzFb%2F-MBWD4abIixqVAIdWCn7%2FBoxenplot.png?alt=media\&token=199ebd66-f3c0-450e-a403-1b682ba5f3e7)
