Hi all,
I'd like to use Gadfly produce a histogram with a function plotted on top
to show a limiting distribution. I mostly have it working, but the
histogram and the function are both blue, so it's pretty hard to read :(
How can I force the function to plot in black (for example)? I could only
find out how to use color when passing in a DataFrame.
My code looks something like this:
evals = ... # an Array{1,Float64}
n, bincount, r = ... # various parameters
barLayer = Gadfly.layer(x=evals, Gadfly.Geom.histogram(bincount=bincount))
circleLayer = Gadfly.layer(x -> (n / bincount / r * 4 / pi) * sqrt(r^2 -
x^2), -r + 0.0001, r - 0.0001)
Gadfly.plot(barLayer, circleLayer)
Thanks,
Joe