MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.43k stars 312 forks source link

scale bar attribute for Axis2D and Axis3D #891

Open gszep opened 3 years ago

gszep commented 3 years ago

Would be cool to have an attribute that shows a scalebar that updates on camera zoom with some options to specify the style, units and range of the scalebar. Even better if this attribute worked with ImageAxes.jl and Unitful.jl to display the correct units of the image coordinates! This would be useful for producing publication-quality microscopy figures

jkrumbiegel commented 3 years ago

This could just be a separate function that adds this to arbitrary plots. It should not be hard to write, although it could be a bit easier once some changes to the text function have landed, that make it easier to use text in consistent sizes in a plot.