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