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

scatterplot's cycle attribute is not working correctly in 3D #3249

Closed
3 tasks done
jacobleft opened this issue Sep 24, 2023 · 1 comment
Closed
3 tasks done

scatterplot's cycle attribute is not working correctly in 3D #3249

jacobleft opened this issue Sep 24, 2023 · 1 comment
Labels

Comments

@jacobleft
Copy link

jacobleft commented Sep 24, 2023

  • are you running newest version (version from docs) ?
jl_hYZyz6) pkg> st
Status `/private/var/folders/n0/367fnn5x0rg8p83b918ltdph0000gn/T/jl_hYZyz6/Project.toml`
  [e9467ef8] GLMakie v0.8.10
  [ee78f7c6] Makie v0.19.10
  • can you reproduce the bug with a fresh environment ? (]activate --temp; add Makie)
  • What platform + GPU are you on?
versioninfo()
Julia Version 1.9.3
Commit bed2cd540a1 (2023-08-24 14:43 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 8 × Apple M2
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
  Threads: 1 on 4 virtual cores
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 

Modifing the 2D example from the docs

with_theme(
    Theme(
        palette = (color = [:red, :blue], marker = [:circle, :xcross]),
        Scatter = (
            cycle = [:color, :marker],)
    )) do
    fig = Figure()
    ax1 = Axis3(fig[1,1])
    scatter!(ax1,[Point3f(1,i,0) for i = 1:10])
    scatter!(ax1,[Point3f(2,i,0) for i = 1:10])
    scatter!(ax1,[Point3f(3,i,0) for i = 1:10])
    scatter!(ax1,[Point3f(4,i,0) for i = 1:10])
    scatter!(ax1,[Point3f(5,i,0) for i = 1:10])
    ax2 = LScene(fig[1,2])
    scatter!(ax2,[Point3f(1,i,0) for i = 1:10])
    scatter!(ax2,[Point3f(2,i,0) for i = 1:10])
    scatter!(ax2,[Point3f(3,i,0) for i = 1:10])
    scatter!(ax2,[Point3f(4,i,0) for i = 1:10])
    scatter!(ax2,[Point3f(5,i,0) for i = 1:10])
    ax3 = Axis(fig[1,3])
    scatter!(ax3,[Point3f(1,i,0) for i = 1:10])
    scatter!(ax3,[Point3f(2,i,0) for i = 1:10])
    scatter!(ax3,[Point3f(3,i,0) for i = 1:10])
    scatter!(ax3,[Point3f(4,i,0) for i = 1:10])
    scatter!(ax3,[Point3f(5,i,0) for i = 1:10])
    current_figure()
end

gives
image
Neither Axis3 nor LScene cycles the color and marker correctly as the Axis does.

@jacobleft jacobleft added the bug label Sep 24, 2023
@SimonDanisch
Copy link
Member

Fixed in #3113 :
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants