Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#4883 closed enhancement (fixed)

Add scalebar command

Reported by: Tom Goddard Owned by: Tom Goddard
Priority: moderate Milestone:
Component: Volume Data Version:
Keywords: Cc: Elaine Meng
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description


Change History (2)

comment:1 by Tom Goddard, 4 years ago

Cc: Elaine Meng added
Resolution: fixed
Status: assignedclosed

Done.

I added a scalebar command which creates a 2D label named "scalebar". It is a special kind of 2D label in that it resizes to keep fixed width in physical units. It has fixed thickness (ie height) in pixels. Default width is 100 Angstroms, thickness 10 pixels, default color is auto (white on dark background, black on light background), default position is 0.1, 0.1 (full window width and height ranges from 0 to 1).

scalebar [width] [thickness a number] [color color] [xpos a number] [ypos a number]

scalebar off

comment:2 by Tom Goddard, 4 years ago

Changed option names "width" -> "length" and "thickness" -> "height" suggested by Elaine. Added scalebar delete, same as scalebar off.

Note: See TracTickets for help on using tickets.