I would like something like the following to work:

        A=rand(1000,4)
        plot(A)                                 # this would plot 4 curves each 
with 1000 data points and auto-labelled as 1:1000
        plot(A,Geom.histogram)          # this would plot 4 histograms with 
1000 data points each


It’s also very unclear how to convert A to a DataFrame.  For histogram, I would 
want variants Geom.histogram(levels=[…]) and Geom.histogram(normed=true).


        


> On 14 Mar 2015, at 4:13 pm, Daniel Jones <[email protected]> wrote:
> 
> 
> I'm working on it: https://github.com/dcjones/Gadfly.jl/issues/563 
> <https://github.com/dcjones/Gadfly.jl/issues/563>
> 
> The desire for a separate plotting semantics is indicative of some 
> shortcoming. So I hope we can resolve that, and there won't be a need to wrap 
> Gadfly.
> 
> 
> On Friday, March 13, 2015 at 8:24:03 PM UTC-7, Sheehan Olver wrote:
> 
>         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] <javascript:>> 
> > 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] 
> > <javascript:>> 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