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

strokecolor inconsistent behaviour for GLMakie and CairoMakie #4781

Open
3 tasks done
olejorik opened this issue Feb 12, 2025 · 0 comments
Open
3 tasks done

strokecolor inconsistent behaviour for GLMakie and CairoMakie #4781

olejorik opened this issue Feb 12, 2025 · 0 comments
Labels

Comments

@olejorik
Copy link

olejorik commented Feb 12, 2025

  • what version of Makie are you running? (]st -m Makie)
]st -m Makie GLMakie CairoMakie


  [13f3f980] CairoMakie v0.13.1
  [e9467ef8] GLMakie v0.11.2
  [ee78f7c6] Makie v0.22.1
  • can you reproduce the bug with a fresh environment ? (]activate --temp; add Makie)
    yes
  • What platform + GPU are you on?
julia> versioninfo()
Julia Version 1.11.3
Commit d63adeda50 (2025-01-21 19:42 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 22 × Intel(R) Core(TM) Ultra 7 155H
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, alderlake)
Threads: 1 default, 0 interactive, 1 GC (on 22 virtual cores)

When running a slightly modified (to make it visually slightly more interesting) example from Makie documentation, I've noticed that the strokecolor argument as a numerical vector is ignored by CairoMakie.
Here is an MWE

using GLMakie; GLMakie.activate!()
using Makie.GeometryBasics
vertsm = [Point2f.([(sin*t), cos*t)) .*t^2 .* k for t in -1:0.01:1]) for k in 1:-0.05:0.3];
fig, ax, pl= poly( vertsm, colormap = :blues, strokecolormap=:plasma, strokewidth = 2, color=1:15, strokecolor =1:15, figure= (;size=(300,300))); hidespines!(ax); hidedecorations!(ax);
save("heart_GLMakie.png", fig; px_per_unit=1)
using CairoMakie; CairoMakie.activate!()
fig, ax, pl= poly( vertsm, colormap = :blues, strokecolormap=:plasma, strokewidth = 2, color=1:15, strokecolor =1:15, figure= (;size=(300,300))); hidespines!(ax); hidedecorations!(ax);
save("heart_CairoMakie.png", fig; px_per_unit=1)

And here are the results. The strokecolor argument is ignored by CairoMakie

CairoMakie GLMakie
CairoMakie GLMakie
@olejorik olejorik added the bug label Feb 12, 2025
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

1 participant