Hi! 
I can't understand your question/problem... 
Are you looking for something like this:

julia> using Gadfly

julia> A = rand(UInt8, 1000);

julia> B = rand(UInt8, 1000);

julia> plot(layer(x=A, Geom.histogram, Theme(default_color=colorant"orange"
)), 
       layer(x=B, Geom.histogram, Theme(default_color=colorant"brown")))

?

Best!


El martes, 2 de febrero de 2016, 2:25:19 (UTC-3), marusu escribió:
>
> Hi, I'm newbie.
>
> I'm trying to make histogram for graphics.
> BMP data is made with UInt8, so I threw UInt8 array to hist().
> It does not work properly.
> I suppose comparing A and B may be confused in hist().
> So what shall I do?
>
>
> There is a sample code. rand(UInt8, 1000) * 1.0 may work fine.
>
> # create data
> data1d= rand(UInt8, 1000)
> (edges, counts)= hist(data1d, -1:255)
> # draw Histogram
> using Winston
> h= Histogram(edges, counts)
> p= FramedPlot()
> add(p, h)
>

Reply via email to