VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Fri Sep 06 2013 - 17:24:19 CDT
- Next message: Martin, Erik W: "RE: Increasing number of digits"
- Previous message: FyD: "Re: mol2 file format & displaying atom connectivities"
- In reply to: Dawid das: "Increasing number of digits"
- Next in thread: Martin, Erik W: "RE: Increasing number of digits"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi,
You can use a script to draw any text labels you want, aside
from the built-in label commands. I'm attaching a trivial example:
proc labelresidue { residueselection labeltext } {
set sel [atomselect top "$residueselection and name CA"]
set positions [$sel get {x y z}]
set num [$sel num]
for {set i 0} {$i < $num} {incr i} {
draw text [lindex $positions $i] $labeltext
}
$sel delete
}
Cheers,
John Stone
vmd_at_ks.uiuc.edu
On Tue, Sep 03, 2013 at 03:31:00PM +0100, Dawid das wrote:
> Dear VMD users,
>
> When I label my bonds I get a three digit number, like 1.32. What I want
> to be displayed is 1.316, that means 3 three digits following the dot
> sign. Is it possible at all? If yes, how can I do it?
> There is also one more thing I struggle with. I know how to change a
> position of a label, but is it possible to turn it around?
> Best wishes,
> Dawid Grabarek
-- NIH Center for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 http://www.ks.uiuc.edu/~johns/ Phone: 217-244-3349 http://www.ks.uiuc.edu/Research/vmd/
- Next message: Martin, Erik W: "RE: Increasing number of digits"
- Previous message: FyD: "Re: mol2 file format & displaying atom connectivities"
- In reply to: Dawid das: "Increasing number of digits"
- Next in thread: Martin, Erik W: "RE: Increasing number of digits"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]