Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[labeling] Fix repeated line labels gravitate to start of line
Avoids situations like 1. Line length of 3cm 2. Repeat distance of 2cm 3. Label size is 1.5 cm 2cm 1cm /--Label--/----/ i.e. the labels are off center and gravitate toward line starts Instead, we first calculate how many complete repeats we can fit in, and then divide the line into even sections of this length, avoiding the situation where some leftover segment of the line end isn't big enough for the label to fit.
- Loading branch information
1 parent
95eb77c
commit eac5cc4
Showing
3 changed files
with
83 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+2 KB
...eat_distance_with_small_line/expected_label_repeat_distance_with_small_line.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.