Allow line_z to specify color across multiple lines

This commit is contained in:
Darwin Darakananda 2017-10-05 20:49:17 -07:00
parent 514cd1bd37
commit 16d18552f8

View File

@ -502,7 +502,7 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
:linestyle => py_linestyle(st, series[:linestyle]), :linestyle => py_linestyle(st, series[:linestyle]),
:norm => pycolors["Normalize"](; extrakw...) :norm => pycolors["Normalize"](; extrakw...)
) )
lz = collect(series[:line_z]) lz = _cycle(series[:line_z], 1:n)
handle = if is3d(st) handle = if is3d(st)
for rng in iter_segments(x, y, z) for rng in iter_segments(x, y, z)
length(rng) < 2 && continue length(rng) < 2 && continue