Re: [julia-users] Re: PyPlot: LineCollection help needed

2016-06-14 Thread David P. Sanders
Great stuff, Tom!

Re: [julia-users] Re: PyPlot: LineCollection help needed

2016-06-14 Thread Tom Breloff
David: Thanks so much for saving me a ton of headache figuring this out for Plots. Just pushed to dev: ``` using Plots y = cumsum(randn(500)) plot(y, line_z = y, w = 3) ``` ​ On Sat, Jun 11, 2016 at 4:13 PM, Christoph Ortner < christophortn...@gmail.com> wrote: > thanks, David, this will be

[julia-users] Re: PyPlot: LineCollection help needed

2016-06-11 Thread Christoph Ortner
thanks, David, this will be useful for me as well! C On Saturday, 11 June 2016 15:20:52 UTC+1, David P. Sanders wrote: > > After looking at some matplotlib examples, it seems that the data > structure needed by LineCollection in Python > is a list of lists, with the inner lists being lists of (x,

[julia-users] Re: PyPlot: LineCollection help needed

2016-06-11 Thread David P. Sanders
After looking at some matplotlib examples, it seems that the data structure needed by LineCollection in Python is a list of lists, with the inner lists being lists of (x,y) pairs. After playing around for a while, the following works for me for drawing a pair of lines in Julia: xs = [1., 3., 5.,

[julia-users] Re: PyPlot: LineCollection help needed

2016-06-11 Thread Christoph Ortner
seems not. On Saturday, 11 June 2016 02:38:54 UTC+1, David P. Sanders wrote: > > Does it work with ax=gca() instead?