Merge pull request #3002 from bernd1995/bernd1995-sticks3d
Added support for 3d-plots of seriestype sticks
This commit is contained in:
commit
078a675d1a
@ -262,13 +262,22 @@ end
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
newx, newy = zeros(3n), zeros(3n)
|
newx, newy = zeros(3n), zeros(3n)
|
||||||
|
newz = z!== nothing ? zeros(3n) : nothing
|
||||||
for i = 1:n
|
for i = 1:n
|
||||||
rng = (3i - 2):(3i)
|
rng = (3i - 2):(3i)
|
||||||
newx[rng] = [x[i], x[i], NaN]
|
newx[rng] = [x[i], x[i], NaN]
|
||||||
newy[rng] = [_cycle(fr, i), y[i], NaN]
|
if z !== nothing
|
||||||
|
newy[rng] = [y[i], y[i], NaN]
|
||||||
|
newz[rng] = [_cycle(fr, i), z[i], NaN]
|
||||||
|
else
|
||||||
|
newy[rng] = [_cycle(fr, i), y[i], NaN]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
x := newx
|
x := newx
|
||||||
y := newy
|
y := newy
|
||||||
|
if z !== nothing
|
||||||
|
z := newz
|
||||||
|
end
|
||||||
fillrange := nothing
|
fillrange := nothing
|
||||||
seriestype := :path
|
seriestype := :path
|
||||||
|
|
||||||
@ -278,6 +287,9 @@ end
|
|||||||
seriestype := :scatter
|
seriestype := :scatter
|
||||||
x := x
|
x := x
|
||||||
y := y
|
y := y
|
||||||
|
if z !== nothing
|
||||||
|
z := z
|
||||||
|
end
|
||||||
label := ""
|
label := ""
|
||||||
primary := false
|
primary := false
|
||||||
()
|
()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user