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

LScene not rendered correctly if created after Axis. #805

Closed
j-fu opened this issue Jan 6, 2021 · 2 comments
Closed

LScene not rendered correctly if created after Axis. #805

j-fu opened this issue Jan 6, 2021 · 2 comments

Comments

@j-fu
Copy link
Contributor

j-fu commented Jan 6, 2021

Hi, with AbstractPlotting 1.15 I have the following issue: If I use Axis and LScene in the same layout, LScene is rendered correctly only if created after Axis.

Axis created before LScene:

axis_before_lscene

LScene created before axis:

lscene_before_axis

Here is an MWE:

using GLMakie
function axis_before_lscene()

    scene, layout = layoutscene(resolution = (1000, 500))
    sc2d=layout[1,1]= Axis(scene)
    scatter!(sc2d,rand(100,2),color=RGBf0(1,0,0))
    sc3d=layout[1,2]= LScene(scene)
    scatter!(sc3d,rand(100,3),color=RGBf0(0,0,1))
    display(scene)
    save("axis_before_lscene.png",scene)
end

function lscene_before_axis()

    scene, layout = layoutscene(resolution = (1000, 500))
    sc3d=layout[1,2]= LScene(scene)
    scatter!(sc3d,rand(100,3),color=RGBf0(0,0,1))
    sc2d=layout[1,1]= Axis(scene)
    scatter!(sc2d,rand(100,2),color=RGBf0(1,0,0))
    display(scene)
    save("lscene_before_axis.png",scene)
end
@jkrumbiegel
Copy link
Collaborator

another thing that I would refer to @SimonDanisch because I have no idea what state a scene creates that could be influenced by the order here

@j-fu j-fu mentioned this issue Jan 12, 2021
@ffreyer
Copy link
Collaborator

ffreyer commented Feb 17, 2021

Still the case after JuliaPlots/AbstractPlotting.jl#636 btw

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.

3 participants