Skip to content

Commit 3872868

Browse files
github-actions[bot]CompatHelper JuliaranochabenegeeJoshuaLampert
authored
CompatHelper: bump compat for Makie in [weakdeps] to 0.24, (keep existing compat) (#2447)
* CompatHelper: bump compat for Makie in [weakdeps] to 0.24, (keep existing compat) * CompatHelper: bump compat for CairoMakie to 0.15 for package test, (keep existing compat) (#2449) Co-authored-by: CompatHelper Julia <[email protected]> * CompatHelper: bump compat for CairoMakie to 0.15 for package docs, (keep existing compat) (#2448) Co-authored-by: CompatHelper Julia <[email protected]> * new syntax for connecting observables (#2457) * Update docs/Project.toml * Update docs/Project.toml --------- Co-authored-by: CompatHelper Julia <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Hendrik Ranocha <[email protected]> Co-authored-by: Benedict <[email protected]> Co-authored-by: Joshua Lampert <[email protected]>
1 parent 6907448 commit 3872868

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ LinearAlgebra = "1"
8181
LinearMaps = "2.7, 3.0"
8282
LoopVectorization = "0.12.171"
8383
MPI = "0.20.6"
84-
Makie = "0.21, 0.22, 0.23"
84+
Makie = "0.21, 0.22, 0.23, 0.24"
8585
MuladdMacro = "0.2.4"
8686
NLsolve = "4.5.1"
8787
Octavian = "0.3.28"

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Trixi2Vtk = "bc1476a1-1ca6-4cc3-950b-c312b255ff95"
2020
TrixiBase = "9a0f1c46-06d5-4909-a5a3-ce25d3fa3284"
2121

2222
[compat]
23-
CairoMakie = "0.12, 0.13, 0.14"
23+
CairoMakie = "0.12, 0.13, 0.14, 0.15"
2424
Changelog = "1.1"
2525
Convex = "0.16"
2626
Documenter = "1.11"

ext/TrixiMakieExt.jl

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,10 @@ function iplot(pd::PlotData2DTriangulated;
216216
# Create a mesh overlay by plotting a mesh both on top of and below the solution contours.
217217
wire_points = Makie.@lift(convert_PlotData2D_to_mesh_Points(getindex(pd,
218218
variable_names[$(menu.selection)])))
219-
wire_mesh_top = Makie.lines!(ax, wire_points, color = :white)
220-
wire_mesh_bottom = Makie.lines!(ax, wire_points, color = :white)
219+
wire_mesh_top = Makie.lines!(ax, wire_points, color = :white,
220+
visible = toggle_solution_mesh.active)
221+
wire_mesh_bottom = Makie.lines!(ax, wire_points, color = :white,
222+
visible = toggle_solution_mesh.active)
221223
Makie.translate!(wire_mesh_top, 0, 0, 1e-3)
222224
Makie.translate!(wire_mesh_bottom, 0, 0, -1e-3)
223225

@@ -232,7 +234,8 @@ function iplot(pd::PlotData2DTriangulated;
232234
[Makie.Point(point.data[1:2]..., z_offset) for point in wire_points]
233235
end
234236
flat_wire_points = Makie.@lift get_flat_points($wire_points, $z_offset)
235-
wire_mesh_flat = Makie.lines!(ax, flat_wire_points, color = :black)
237+
wire_mesh_flat = Makie.lines!(ax, flat_wire_points, color = :black,
238+
visible = toggle_mesh.active)
236239

237240
# create a small variation in the extrema to avoid the Makie `range_step` cannot be zero error.
238241
# see https://github.com/MakieOrg/Makie.jl/issues/931 for more details.
@@ -250,11 +253,6 @@ function iplot(pd::PlotData2DTriangulated;
250253
Makie.Colorbar(fig[1, 3], limits = Makie.@lift(scaled_extrema($solution_z)),
251254
colormap = colormap)
252255

253-
# This syncs the toggle buttons to the mesh plots.
254-
Makie.connect!(wire_mesh_top.visible, toggle_solution_mesh.active)
255-
Makie.connect!(wire_mesh_bottom.visible, toggle_solution_mesh.active)
256-
Makie.connect!(wire_mesh_flat.visible, toggle_mesh.active)
257-
258256
# On OSX, shift-command-4 for screenshots triggers a constant "up-zoom".
259257
# To avoid this, we remap up-zoom to the right shift button instead.
260258
Makie.cameracontrols(ax.scene).controls.up_key = Makie.Keyboard.right_shift

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ TrixiTest = "0a316866-cbd0-4425-8bcb-08103b2c1f26"
3131
[compat]
3232
ADTypes = "1.11"
3333
Aqua = "0.8"
34-
CairoMakie = "0.12, 0.13, 0.14"
34+
CairoMakie = "0.12, 0.13, 0.14, 0.15"
3535
Convex = "0.16"
3636
DelimitedFiles = "1"
3737
DoubleFloats = "1.4.0"

0 commit comments

Comments
 (0)