fix missing z for 3d markerplots in PyPlot

This commit is contained in:
Felix Hagemann 2020-10-22 22:27:23 +02:00
parent 8dc3d9805a
commit 26f877ec47

View File

@ -480,9 +480,17 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
) )
for (i, rng) in enumerate(iter_segments(series, :scatter)) for (i, rng) in enumerate(iter_segments(series, :scatter))
xyargs = if st == :bar && !isvertical(series) xyargs = if st == :bar && !isvertical(series)
y[rng], x[rng] if RecipesPipeline.is3d(sp)
y[rng], x[rng], z[rng]
else
y[rng], x[rng]
end
else else
x[rng], y[rng] if RecipesPipeline.is3d(sp)
x[rng], y[rng], z[rng]
else
x[rng], y[rng]
end
end end
handle = ax."scatter"(xyargs...; handle = ax."scatter"(xyargs...;