[Chimera-users] Display Molecule Name
cdlau at ucsd.edu
Wed Jul 8 02:40:15 PDT 2009
Sorry to bother everyone again,
But I was using
~modeldisp #0.1-1000 #hides all molecules
modeldisp #0.1 #shows first molecule
labelopt info molecule
la @/serialNumber=1 #labels molecule as "#0.1"
and I wanted to change the label size to larger than the default font size
of 24. From the documentation on changing 2dlabels I used the command
2dlabels change size <label-name> 40
I wasn't sure what i should use as "label-name". In the ucsf documentation
says "*label-name* is a label identifier, not its text." I tried using
various label names, but was not successful. What is the correct label-name
to use to change the font size?
On Tue, Jul 7, 2009 at 1:00 AM, Elaine Meng <meng at cgl.ucsf.edu> wrote:
> Hi Chris,
> If you use the "regular" 3D labels (shown with commands labelopt and
> label), the font and size can be controlled in the Preferences (Favorites...
> Preferences, category: Background).
> If you use 2D labels, the font and size as well as color and X,Y location
> can be set with the "2dlabels" command or in the 2D Labels graphical
> interface (under Tools... Utilities). For the command, see the "size"
> "style" and "typeface" options of "2dlabels create" and "2dlabels change."
> If you want to get fancy, 2D labels can also be faded in or out over a
> specified number of frames.
> 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 Jul 5, 2009, at 6:29 PM, christopher lau wrote:
> Hi everyone,
>> Thanks for your help, using
>> open 1g1p
>> rainbow models
>> [ then I used the "Tile Structures" tool to spread the structures out ]
>> labelopt info molecule
>> la @/serialNumber=1
>> Worked perfectly!
>> Is there a way to change the font of the model number, it displays the
>> molecule as #0.1, etc but the font is incredibly small
>> On Sat, Jul 4, 2009 at 10:00 AM, Eric Pettersen <pett at cgl.ucsf.edu>
>> Hi Chris,
>> Yet another way to do this, assuming you know the approximate x,y
>> positions of your molecules on the screen would be to title them with the
>> 2dlabels command (
>> Assuming that your Molecule variable is 'm' then m.name is the molecule
>> name (as shown in the Model Panel) and str(m) gives the same text as the
>> help balloon would if the mouse were hovered over the Molecule.
>> On Jul 2, 2009, at 11:02 PM, cdlau at ucsd.edu wrote:
>>> Thanks for the response. This would not work for my case because I am
>>> writing a plugin for ViewDock for use with a Tiled Wall Display. I was
>>> hoping there was a setting that was available to show the molecule name
>>> (if a setting does exist I can initiate it with runCommand). Does anyone
>>> know if this is possible?
>>> On Thu, 2 Jul 2009, cdlau at ucsd.edu wrote:
>>> I was wondering if there was a way to display the molecule name that is
>>> being shown in chimera. A simple display such as "molecule #0.10" below
>>> the rendered molecule would be great.
>>> Thanks for your help,
>>> Just place the mouse over the item you want to know more about and a
>>> balloon will tell you about it. The text starts with the model number,
>>> e.g., #0.10, and may or may not have additional information, i.e., for an
>>> atom it includes the residue name and sequence number and the atom name.
>>> - Greg
>>> Chimera-users mailing list
>>> Chimera-users at cgl.ucsf.edu
>> Chimera-users mailing list
>> Chimera-users at cgl.ucsf.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chimera-users