Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing z for 3d markerplots in PyPlot #3092

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

fhagemann
Copy link
Contributor

This is an attempt to fix #3036.

For 3D plots, it seems like the z array is not passed, such that the markers are plotted at z = 0.

using Plots; pyplot()
plot([1,2,3],[1,3,2],[3,1,2], label = "Line")
scatter!([1,2,3],[1,3,2],[3,1,2], label = "Scatter", camera = (0,0), zlims = (0,3))

Old code:
before_fix

New code:
after_fix

I am quite new to the Plots.jl code, so I cannot judge whether this pull request completely fixes the issue.

Feedback is very welcome!

@daschw
Copy link
Member

daschw commented Oct 23, 2020

Nice thanks a lot!

@daschw daschw merged commit 9b24b38 into JuliaPlots:master Oct 23, 2020
@fhagemann fhagemann deleted the pyplot branch October 24, 2020 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] wrong z-coordinate in scatter3d and plot3d with pyplot backend
2 participants