--- title: hist description: This page provides a guide on how to use 'hist' function in Python which plots a histogram with density and rug. It also includes parameters related information and usage syntax. keywords: - Histogram - Density - Rug - Usage - Parameters - n_bins --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; Histogram with density and rug ### Usage ```python hist [-b N_BINS] ``` --- ## Parameters | Name | Description | Default | Optional | Choices | | ---- | ----------- | ------- | -------- | ------- | | n_bins | | 15 | True | None | ![hist](https://user-images.githubusercontent.com/46355364/154306947-aaba936a-ac07-40e2-a5a6-bf1fab460cd0.png) ---