# Plot histogram with Plots

**URL:** <https://discourse.julialang.org/t/plot-histogram-with-plots/2304>\
**Category:** Statistics\
**Tags:** plotting, statistics\
**Created:** [February 25, 2017, 8:50pm UTC](https://discourse.julialang.org/t/plot-histogram-with-plots/2304 "2017-02-25T20:50:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrea\_Tersigni](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Andrea\_Tersigni](https://discourse.julialang.org/u/Andrea_Tersigni)\
**Post date:** [February 25, 2017, 8:50pm UTC](https://discourse.julialang.org/t/plot-histogram-with-plots/2304/1 "2017-02-25T20:50:49Z")

</div>

“In convertToAnyVector, could not handle the argument types: (Float64,)”

---

<div class="post-metadata">

**Author:** ![tbreloff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbreloff/32/68_2.png) [@tbreloff](https://discourse.julialang.org/u/tbreloff)\
**Post date:** [February 25, 2017, 9:07pm UTC](https://discourse.julialang.org/t/plot-histogram-with-plots/2304/2 "2017-02-25T21:07:56Z")

</div>

You’re plotting a histogram of a scalar… I’m not really sure what you’d  
expect that to do…

This error is when the input types aren’t supported. You can read more in  
the docs.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [February 25, 2017, 10:11pm UTC](https://discourse.julialang.org/t/plot-histogram-with-plots/2304/4 "2017-02-25T22:11:58Z")

</div>

Use the help to look up what the rand and mean functions can do. Hint: if you make a matrix, you can calculate the mean the columns all at once, so no loop is necessary. The means will then be a vector which can be plotted. Other hint: by the Central limit theorem the distribution of the means should look like a bell curve when you put enough of them.

And this is obviously the same homework problem which was just posted twice here, and also on Stack Overflow.

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [February 25, 2017, 11:52pm UTC](https://discourse.julialang.org/t/plot-histogram-with-plots/2304/5 "2017-02-25T23:52:50Z")

</div>

Which introductory Julia tutorials have you looked at? See the “Tutorials” and “Video tutorials” sections on the Julia webpage:

> **[Get started with Julia](https://julialang.org/learning/)**
>
> The official website for the Julia Language. Julia is a language that is fast, dynamic, easy to use, and open source. Click here to learn more.
