# plotHist {#plothist}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`plotHist(data, [binNum], [range], [title])`

## Arguments {#arguments}

**data** is a vector, or a matrix column, or a table column.

**binNum** is the number of bins the histogram shows.

**range** is the data range in the histogram.

**title** is graph title.

## Details {#details}

Generate a histogram chart object.

## Examples {#examples}

```
x=norm(0.0, 1.0, 10000);
plotHist(x, 10)
```

![](../../images/plotHist01.png)

```
plotHist(x, 10, -2:2)
```

![](../../images/plotHist02.png)

