MakieOrg / GeoMakie.jl

Geographical plotting utilities for Makie.jl
https://geo.makie.org
MIT License
171 stars 25 forks source link

get ygridstyle and update it #280

Open lazarusA opened 5 days ago

lazarusA commented 5 days ago

it looks like currently this is not possible, I'm looking into getting the current ones, and the do my own.

julia> ga.ygridstyle[]

julia> ga.ygridstyle
Observable{Any}(nothing)
    0 => map((::GLMakie.var"#235#236")(value) @ GLMakie ~/.julia/packages/GLMakie/o5Nad/src/drawing_primitives.jl:388)

julia> ga.ygridstyle = :dash
ERROR: cannot convert a value to nothing for assignment
Stacktrace:
  [1] error(s::String)
asinghvi17 commented 5 days ago
latgridplot = lines!(scene, latticks_line_obs; color=axis.ygridcolor, linewidth=axis.ygridwidth,
    visible=axis.ygridvisible, linestyle=axis.ygridstyle, transparency=true)

Maybe we need to change the default? Does it work if you pass the geoaxis constructor the parameter like GeoAxis(...; ygridstyle = :dash)?