Please advise, how to plot a matrix (10x1000) with different color.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Please advise, how to plot a matrix (10x1000) with different color.

Nelson Mok
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.

--
You received this message because you are subscribed to the Google Groups "julia-stats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Please advise, how to plot a matrix (10x1000) with different color.

Sisyphuss
Gadfly doesn't work like Matlab. You can't do it like that.

You should transform it into a DataFrame and then do a little extra work.

Ref: https://github.com/dcjones/Gadfly.jl/issues/563


On Tuesday, June 16, 2015 at 2:44:05 PM UTC+2, Nelson Mok 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.

--
You received this message because you are subscribed to the Google Groups "julia-stats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.