I’m trying to define a custom plotting theme in Makie.jl. I want to remove the default color cycle for Lines and have black be the default color. I’m not sure if my syntax is correct, but it works in CairoMakie. But, when I activate the GLMakie backend and use
display(), I get the following error:
ERROR: MethodError: no method matching gl_convert(::Symbol)
I’ve tried a few combinations for where to put
cycle = nothing and
linecolor = :black, but I still get stuck. I’m referencing the Cycles section of the Theming documentation.
(The reason I want to do this theme is that I want just the shape of a function to import into Affinity Designer and use that to fill in colors, etc. as part of a project.)
function theme_af() Theme( backgroundcolor = :transparent, Lines = (cycle = nothing, linecolor = :black), Axis = ( backgroundcolor = :transparent, xgridvisible = false, ygridvisible = false, xminorgridvisible = false, yminorgridvisible = false, leftspinevisible = false, rightspinevisible = false, bottomspinevisible = false, topspinevisible = false, xminorticksvisible = false, yminorticksvisible = false, xticksvisible = false, yticksvisible = false, xticklabelsvisible = false, yticklabelsvisible = false, ), ) end set_theme!(theme_af()) f, ax, l = lines(1..10, sin) display(f)