Skip to content

Commit

Permalink
Update opf_recipe.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
VEZY committed Jun 13, 2024
1 parent 99e8fe8 commit 0213019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/makie_recipes/opf_recipe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ viz(opf, color = Dict(1 => :burlywood4))
# Or coloring by opf attribute, e.g. using the mesh max Z coordinates (NB: need to use
# `refmesh_to_mesh!` before, see above):
transform!(opf, :geometry => (x -> zmax(x.mesh)) => :z_max, ignore_nothing = true)
transform!(opf, zmax => :z_max, ignore_nothing = true)
viz(opf, color = :z_max)
# One color for each vertex of the refmesh 1:
Expand Down

0 comments on commit 0213019

Please sign in to comment.