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

scatter + Axis3 + GLMakie does not work #994

Closed
hexaeder opened this issue May 27, 2021 · 4 comments · Fixed by #1596
Closed

scatter + Axis3 + GLMakie does not work #994

hexaeder opened this issue May 27, 2021 · 4 comments · Fixed by #1596

Comments

@hexaeder
Copy link
Contributor

hexaeder commented May 27, 2021

This came up in slack:

f = Figure()
pos = rand(Point3f0, 10)
ax3 = f[1,1] = Axis3(f)
scatter!(ax3, pos)
lines!(ax3, pos)

The points do not show up in GLMakie:
Screenshot 2021-05-27 at 11 51 17
as they do with CairoMakie
Screenshot 2021-05-27 at 11 52 19

This seems do be independent of the markersize argument.

@jkrumbiegel
Copy link
Member

markersize = 3000 or something should show them in GLMakie. Axis3 has a scaled view matrix, and I think this view matrix is somehow not correctly incorporated when adjusting the scatter marker size. You can change the ax3.perspectiveness values between 0 and 1, and the closer the camera gets to the axis, the bigger the markers become (they should of course be independent)

@hexaeder
Copy link
Contributor Author

Yes you are right, they show up and scale further with the ax3.perspectiveness. I was still using to small markers...

@SimonDanisch
Copy link
Member

I think for 2d line plot with scatter function, it really dont works

This seems to be another issue? Can you make the code copy & pastable and explain the expected behavior?
I don't see a plot with 300 markersize, and you're creating multiple plots while only screenshotting one, so I'm not sure what's going on here

@jcbritobr
Copy link

I think for 2d line plot with scatter function, it really dont works

This seems to be another issue? Can you make the code copy & pastable and explain the expected behavior? I don't see a plot with 300 markersize, and you're creating multiple plots while only screenshotting one, so I'm not sure what's going on here

Realised that was my issue here. Problem was in a typo.

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 a pull request may close this issue.

4 participants