Richard,

The PyMOL team was just discussing this a few days back. Sadly, there
is no way to do this using standard labels.

If you have Incentive PyMOL v1.7 you can use the new callout command
(http://pymol.org/dsc/dokuwiki/doku.php?id=command:callout). Otherwise
you can use the pseudoatom
(http://www.pymolwiki.org/index.php/Pseudoatom) as a label:

# create a single ala

frag ala

# create a labeled distance

dist 2/N, 2/O

# hide the labels

hide labels

# create a new label at the center of the selection

pseudoatom new_label, (2/N or 2/O), label="Some arbitrary label here: \316\261"

orient


Cheers,

-- Jason

On Tue, Feb 4, 2014 at 10:07 AM, Richard Smith <re...@cam.ac.uk> wrote:
> Hi,
>
> Is there an easy way to change the label on a distance object to some
> arbitrary string?
>
> I would like a line connecting two atoms with an arbitrary label
> at the midpoint between the two atoms.
>
> for example:
> #make atom pair selection
> distance d, (id 3651, id 3691) # actual distance = 2.00
>
> #replace "2.00" with "100%"  # or any other string
> label d, "100%"
>
>
>
> Thanks.
>
> --
> -----------------------
> Regards
> Richard Smith
>
> Research Associate
> Department of Zoology
> Smith Research Group
> University of Cambridge
> Downing Street
> Cambridge CB2 3EJ
>
> Tel.: +44 (0)1223 330933
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications
> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
> _______________________________________________
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net



-- 
Jason Vertrees, PhD
Director of Core Modeling Products
Schrödinger, Inc.

(e) jason.vertr...@schrodinger.com
(o) +1 (603) 374-7120

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to