question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi Marco,

itkwidgets has a very nice scale bar functionality (see screenshot below, the number changes depending on how zoomed in you are), is there something similar in vedo? I know that there’s an axis option that shows a ruler at the bottom of the screen, but I could never quite figure out if it would work as a scale bar. Also in general I’d prefer something small like in the the screenshot.

image

I guess it would be possible to hack something like this using a 2d scale bar, but was wandering if you had already something set up for it.

To be clear: what I’d like is something that maps the length of a line in number of pixels in the window to what that corresponds to in the scene in terms of distance between two points. So I don’t want a ruler that just shows the distance between two points. Say that the scalebar line is 100px long, if I’m very zoomed out that could be equal to a distance of 1000 between two points, but once I zoom in a lot the same line shows the distance betwee two points that are say 50 apart, makes sense?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
marcomusycommented, Dec 9, 2020

what are the issues?

many 😃

  • the wheel does not trigger an interaction
  • the mapper seems to render badly the polygonal text
  • merging the polydatas is probably a bad idea because I cannot then modify the width of the line
1reaction
marcomusycommented, Dec 4, 2020

Use settings.useParallelProjection=True

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scale bars—ArcGIS Pro | Documentation
Scale bars provide a visual indication of distance and feature size on the map. A scale bar is a line or bar divided...
Read more >
Understanding Scale Bars | Architecture Guides & Resources
A scale bar is a linear graphic that is divided into equal segments and used to measure distances on drawings and/or maps that...
Read more >
How to Show Map Scale with Scale Bar, Inset Map and Ratio ...
Scale bars come in different sizes, shapes, and forms. They always have a unit of distance, such as feet, meters, or miles that...
Read more >
Scale Bars | Data Visualization Standards
Scale bars, or bar scales, are small graphics that indicate the proportions of a map to the original geographic area and help users...
Read more >
"Scale Bar" Images – Browse 330 Stock Photos, Vectors, and ...
Search from thousands of royalty-free "Scale Bar" stock images and video for your next project. Download royalty-free stock photos, vectors, HD footage and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found