Opened 3 years ago
Last modified 2 years ago
#8842 assigned enhancement
Allow a text label with scalebar
Reported by: | Tristan Croll | Owned by: | Tom Goddard |
---|---|---|---|
Priority: | moderate | Milestone: | |
Component: | Depiction | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
Tristan asks if the scalebar command could have an option to display a text label with the bar. Original request was in ticket #8837 which included a second problem, so this ticket is to separate the two issues.
Change History (4)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
(email reply from yesterday that didn't make it through):
The advantage of doing it that way is that the displayed value could be directly linked to the scalebar length, so the user doesn’t have to remember to manually synchronize them. Would also avoid needing to look up the Angstrom or micron symbols when those are the most appropriate units. You could always just set some reasonable default for font, size etc., then direct the user to use the 2dlabels command if they want to customize it.
follow-up: 3 comment:3 by , 3 years ago
The advantage of doing it that way is that the displayed value could be directly linked to the scalebar length, so the user doesn’t have to remember to manually synchronize them. Would also avoid needing to look up the Angstrom or micron symbols when those are the most appropriate units. You could always just set some reasonable default for font, size etc., then direct the user to use the 2dlabels command if they want to customize it. On Fri, 14 Apr 2023 at 19:06, ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu> wrote:
comment:4 by , 2 years ago
The automatic update of the scalebar length label is of course desirable. The main issue is whether we have time to add all the extra code to support it. In most publication figures the scalebar is unlabeled and the caption says how long it is. But I agree it would be nice to have an optional label.
It is a bit tedious to use the 2dlabel command to add a label near the scalebar. But there are so many desirable options for placing a label: font size, positioning relative to the bar, font family, font weight, text color. So adding a label is probably more complex than the entire current scalebar capability, and all the options are already available in the 2dlabel command. While it would be nice if all those were combined into the scalebar command I'd say that level of convenience so one command can be typed instead of two is probably not going to get implemented due to too many competing higher priority improvements.