Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print Scalebar Update #1280

Closed
OlofSvahnVbg opened this issue Feb 3, 2023 · 1 comment
Closed

Print Scalebar Update #1280

OlofSvahnVbg opened this issue Feb 3, 2023 · 1 comment
Assignees
Labels
new feature Request for adding/changing functionality
Milestone

Comments

@OlofSvahnVbg
Copy link
Collaborator

What’s the problem?

Many users have noted that the scalebar, specifically the distances drawn out in the scalebar, are somewhat problematic. The main concerns are:

  1. The distance number for some scales are difficult to divide by 2 or more.
  2. The scalebar contains insufficient division lines for accurate and easy measurements.

Together, these two concerns create a difficult to use scalebar, as the user often need to divide or multiply the total distance number on the scalebar.

An improvement would be more division lines and set total distance numbers that are easily divided and multiplied by 2.

For example, the user might print in the scale 1:500:
image

The scalebar now draws like this:
image

The distance “25” divided by 2 is 12,5 which isn’t hard math, but it might be problematic when measuring. An even number would be better here.

Same problem also arises if the user prints with the scale 1:2000:
image

The distance “75” divided by 2 is 37.5, which is not ideal. Also if you multiply 75 you get 150, 225, 300, 375, 455 and so on. A better distance number would be “100”, for obvious reasons.

If you want to measure something shorter than “75”, every line division on your ruler would be fractions. Examples: 37,5, 18,75, 9,375 and so on.

How to improve this?

To fix this we should add more division lines and have set numbers that are even tens or hundreds. The number should also be evenly divisible by 2 (at least once divided). Numbers like 10, 20, 40, 80, 100, 200, 300 etc. These numbers are easier to divide/multiply than 25 and 75.

Adding division lines can be done in many ways. Maybe we want lines evenly placed on the entire scalebar with number markers above some lines. Or we might want a scalebar with increasing distances between the division lines. Either is fine, but one certain user with insight in the matter suggested the latter.

Examples:

Evenly distributed division lines:
image

Increasingly distributed division lines:
image

I'm given to understand that the code for drawing the scalebar is a bit complex. I am inclined to poke around and test a few things, but I'm not sure I'm the best person for this fix.

@OlofSvahnVbg OlofSvahnVbg added the new feature Request for adding/changing functionality label Feb 3, 2023
@OlofSvahnVbg OlofSvahnVbg added this to the 3.x milestone Feb 3, 2023
@Hallbergs
Copy link
Member

I agree completely! The suggested solution looks good!

I think you should give it a go! If you want to discuss the solution or bounce ideas just reach out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Request for adding/changing functionality
Projects
None yet
Development

No branches or pull requests

4 participants