Seth,

Yes, via the "label_position" setting which specifies x,y, and z
alignment of labels.

Values in the range [-1,1] imply alignment.  Beyond that, it is a
translation along camera axes in model-space dimensions.  

# for left alignment 0.75 A in front of atom

set label_position, [-1,0,1.75]

# for right alignment directly on atom

set label_position, [1,0,0]

# for left alignment 1 A to right of atom

set label_position, [2,0,0]

# for center alignment 2 A below atom

set label_position, [0,-3,0]

# centered 3 A in front of atom

set label_position, [0,0,4]

etc.

Cheers,
Waren


--
Warren L. DeLano, Ph.D.                     
Principal Scientist

. DeLano Scientific LLC  
. 400 Oyster Point Blvd., Suite 213           
. South San Francisco, CA 94080 USA   
. Biz:(650)-872-0942  Tech:(650)-872-0834     
. Fax:(650)-872-0273  Cell:(650)-346-1154
. mailto:war...@delsci.com      
 

> -----Original Message-----
> From: pymol-users-ad...@lists.sourceforge.net 
> [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of 
> Seth Harris
> Sent: Thursday, February 23, 2006 10:45 AM
> To: pymol-users@lists.sourceforge.net
> Subject: [PyMOL] label positions, centered, left, or right
> 
> Hi all,
> 
> Minor thing, but thought I'd ask...
> 
> Labels now appear to be centered on whatever atom they are 
> labeling. Previously, the left-hand side of the label was on 
> the atom (left-anchored). Is there a way to choose whether 
> the label is left-anchored, centered, or right-anchored? 
> 
> I find that it's hard to offset the label sufficiently with 
> commands like:
> 
> label myprot and name ca, "    %s%s" % (resn,resi)
> 
> which used to get the label to float nicely just to the right 
> of the atom. 
> Now that the label is centered the spaces don't help push the 
> labels over as much as they used to, and the obvious route of 
> adding twice as many spaces somehow isn't getting me there. I 
> thought there might be an anchor, align, or justification 
> flag on the labels. 
> 
> I did also notice that in editing mode you can drag the 
> labels to whatever position you wanted in recent betas.  Very nice!
> 
> Cheers,
> Seth
> 
> 

Reply via email to