Skip to content

Commit

Permalink
Merge pull request JuliaPlots#3092 from fhagemann/pyplot
Browse files Browse the repository at this point in the history
fix missing z for 3d markerplots in PyPlot
  • Loading branch information
daschw authored Oct 23, 2020
2 parents c0b375a + 26f877e commit 9b24b38
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/backends/pyplot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,17 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
)
for (i, rng) in enumerate(iter_segments(series, :scatter))
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
x[rng], y[rng]
if RecipesPipeline.is3d(sp)
x[rng], y[rng], z[rng]
else
x[rng], y[rng]
end
end

handle = ax."scatter"(xyargs...;
Expand Down

0 comments on commit 9b24b38

Please sign in to comment.