From 658c15cb80635e25ecc76150638dcf535e69f131 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Sun, 22 Oct 2023 19:26:46 +0900 Subject: [PATCH] fix inspector label --- main.jl | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/main.jl b/main.jl index 7ca19c4..2315592 100644 --- a/main.jl +++ b/main.jl @@ -105,7 +105,22 @@ heatmap!( ) # translate!(fig2.scene, -400, 0, 400) for coords in coords_traces - scatterlines!( + scatter!( + ax, + coords[:, 1], + coords[:, 3], + color = get(color_v, coords[:, 2], (hmin, hmax)), + markersize = 3, + label = "railway", + inspector_label = (plot, index, position) -> begin + """ + x: $(coords[index, 1]) + y: $(coords[index, 2]) + z: $(coords[index, 3]) + """ + end, + ) + lines!( ax, coords[:, 1], coords[:, 3], @@ -115,7 +130,6 @@ for coords in coords_traces # inspector_label = (plot, index, position) -> begin # "($(coords[index, 1]), $(coords[index, 2]), $(coords[index, 3]))" # end, - inspector_label = (_, _, _) -> "nothing", ) scatterlines!( ax3,