Hmm… that’s a little bit complicated… I wonder if there would be 
interest in a wrapper package for Gadfly that makes these things simpler?




> On 13 Mar 2015, at 3:03 pm, Jiahao Chen <[email protected]> wrote:
> 
> Daniel is the authoritative source, but for such situations I use
> layers and manual color schemes like this:
> 
> using Color, Gadfly
> 
> xgrid=0:10:100
> data=rand(10,10)
> nrows = size(data, 1)
> cm = distinguishable_colors(nrows, lchoices=0:50) #lchoices between 50
> and 100 are too bright for my taste for plotting lines
> plot(
>   [layer(x=xgrid, y=data[i, :], Geom.line,
> Theme(default_color=cm[i])) for i=1:nrows]...,
>   Guide.manual_color_key("row id", ["row $i" for i=1:nrows], cm),
>  )
> 
> Thanks,
> 
> Jiahao Chen
> Staff Research Scientist
> MIT Computer Science and Artificial Intelligence Laboratory
> 
> 
> On Thu, Mar 12, 2015 at 11:54 PM, Sheehan Olver <[email protected]> wrote:
>> 
>> I have a table of numbers that I want to line plot in Gadfly: i.e., each
>> column corresponds to values of a function.  Is this possible without
>> creating a DataFrame?
>> 
>> 

Reply via email to