If you know the categories then one thing you could do is think about it as a
barplot
julia> UnicodePlots.barplot(a[:,1], a[:,2], symb = "▇")
┌────────────────────────────────────────┐
7 │▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 4 │
4 │▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 2 │
9 │▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 3 │
10 │▇▇▇▇▇▇▇ 1 │
2 │▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 5 │
3 │▇▇▇▇▇▇▇ 1 │
5 │▇▇▇▇▇▇▇ 1 │
8 │▇▇▇▇▇▇▇ 1 │
6 │▇▇▇▇▇▇▇ 1 │
1 │▇▇▇▇▇▇▇ 1 │
└────────────────────────────────────────┘
> On 23 Aug 2016, at 16:14, Ahmed Mazari <[email protected]> wrote:
>
> Hello,
> l have this matrix where the first column represents different values and
> second column represents the number of occurences of each value. How can plot
> a histogram x-axis : the different values, y-axis : the number of occurences.
>
>
> 10x2 Array{Int64,2}:
> 7 4
> 4 2
> 9 3
> 10 1
> 2 5
> 3 1
> 5 1
> 8 1
> 6 1
> 1 1
>
>
>
> Thank you