From: Warren D. <wa...@de...> - 2006-02-23 18:50:44
|
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. =20 # 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. =20 Principal Scientist . DeLano Scientific LLC =20 . 400 Oyster Point Blvd., Suite 213 =20 . South San Francisco, CA 94080 USA =20 . Biz:(650)-872-0942 Tech:(650)-872-0834 =20 . Fax:(650)-872-0273 Cell:(650)-346-1154 . mailto:wa...@de... =20 =20 > -----Original Message----- > From: pym...@li...=20 > [mailto:pym...@li...] On Behalf Of=20 > Seth Harris > Sent: Thursday, February 23, 2006 10:45 AM > To: pym...@li... > Subject: [PyMOL] label positions, centered, left, or right >=20 > Hi all, >=20 > Minor thing, but thought I'd ask... >=20 > Labels now appear to be centered on whatever atom they are=20 > labeling. Previously, the left-hand side of the label was on=20 > the atom (left-anchored). Is there a way to choose whether=20 > the label is left-anchored, centered, or right-anchored?=20 >=20 > I find that it's hard to offset the label sufficiently with=20 > commands like: >=20 > label myprot and name ca, " %s%s" % (resn,resi) >=20 > which used to get the label to float nicely just to the right=20 > of the atom.=20 > Now that the label is centered the spaces don't help push the=20 > labels over as much as they used to, and the obvious route of=20 > adding twice as many spaces somehow isn't getting me there. I=20 > thought there might be an anchor, align, or justification=20 > flag on the labels.=20 >=20 > I did also notice that in editing mode you can drag the=20 > labels to whatever position you wanted in recent betas. Very nice! >=20 > Cheers, > Seth >=20 >=20 |