[Chimera-users] color bond distance, angle and so on

Elaine Meng meng at cgl.ucsf.edu
Thu Jan 27 09:46:41 PST 2011

Hi JD,
The distance lines are "pseudobonds" -- their display properties including label color are pseudobond attributes.  Torsion angle labels are on actual bonds, so their display properties are bond attributes.

These attributes can be changed in a few different places.  

(1) with the Selection Inspector:  if you select the bond or pseudobond (Ctrl-click in the graphics window) then click the green magnifying glass icon near the bottom right corner, it opens the Selection Inspector.  You can inspect "Bond" (for the torsion angle label), or "Pseudobond" (for a distance monitor), or "Pseudobond group" (if you had selected one distance monitor, this would apply to all the distance monitors).

(2) or without any selecting, you can use the pseudobond attributes panel.  For the "distance monitor" group of pseudobonds, this can be shown by clicking the "Display options" button on the Distances tool (under Tools... Structure Analysis) or by double-clicking "distance monitor" in the left side of the PseudoBond Panel (under Tools... General Controls).

(3) command "setattr", if you are scripting.  The balloon help on any of these attributes panels (Selection Inspector or the attributes panel mentioned in #2 above) shows the name of each attribute, which could be used with the "setattr" command.  Examples:

setattr p labelColor orange
setattr b labelColor .2,.6,1 sel


I hope this helps,
Elaine C. Meng, Ph.D. 
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco

On Jan 27, 2011, at 5:22 AM, Jean-Didier Maréchal wrote:

> Hi guys,
> How can I change the color of the labels associated to distance between atoms, angles etc (both the for the text and the dashes). Thanks a lot
> JD

More information about the Chimera-users mailing list