Note that in most plotting packages, `plot(vec)` is interpreted as 1000 functions of 10 elements each. That is, when given a matrix as argument, they plot the columns.
-- mb On Tue, Jun 16, 2015 at 8:10 PM, Nelson Mok <[email protected]> wrote: > HI, > > Please comment, how to plot the matrix (10x1000) with different color, > thank you > > ================================== > using Gadfly > > ## number of vectors > n = 10 > > ## number of elements > n_elm = 1000 > > vec = randn(n, n_elm) > plot(vec) # it doesn't work > > Regards, > Nelson. >
