Tyler.jl icon indicating copy to clipboard operation
Tyler.jl copied to clipboard

[Feature Idea] Scalebar that adjust on zoom

Open lupemba opened this issue 1 year ago • 3 comments

It would be nice to have a scalebar that adjust on zoom so you easy can have a length reference in the figure. The syntax could be similar to axislegend so it can be added with a single line of code and the position and style can be set via arguments.

image

lupemba avatar Jun 13 '24 13:06 lupemba

Maybe give it a go with a PR :) @jkrumbiegel showed a way of doing it here:

https://discourse.julialang.org/t/scale-division-in-makie/105650/2

lazarusA avatar Jun 13 '24 14:06 lazarusA

Maybe give a go with a PR :) @jkrumbiegel showed a way of doing it here:

https://discourse.julialang.org/t/scale-division-in-makie/105650/2

Yes exactly like that. I will put it on my list and give it a go when I have some time :)

lupemba avatar Jun 13 '24 14:06 lupemba

I think https://github.com/JuliaAPlavin/MakieExtra.jl has something like this now. I guess there should also be an option to turn it off...

asinghvi17 avatar Jul 04 '24 19:07 asinghvi17