Talk:Label: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
Line 47: Line 47:


=Settings=
=Settings=
Here are all the label settings and their general effect:
Here are all the label settings and their general effect.  For each label setting, see the respective web page for more details.


'''[[label_angle_digits]]'''
'''[[label_angle_digits]]'''
Line 54: Line 54:
:: (no idea)
:: (no idea)
'''[[label_shadow_mode]]'''
'''[[label_shadow_mode]]'''
:: sets whether or not PyMOL will ray trace shadows for your label text
:: sets whether or not PyMOL will ray trace shadows for your label text.  Eg: <source lang="python">set label_shadow_mode, 2</source>
'''[[label_color]]'''
'''[[label_color]]'''
:: sets the color of the label text
:: sets the color of the label text.  Eg: <source lang="python">set label_color, magenta</source>
'''[[label_font_id]]'''
'''[[label_font_id]]'''
:: sets the font to render your label
:: sets the font to render your label.  Eg: <source lang="python">set label_font_id, 12</source>
'''[[label_size]]'''
'''[[label_size]]'''
:: sets the size of the text
:: sets the size of the text.  Eg: <source lang="python">set label_size, -2</source>
'''[[label_digits]]'''
'''[[label_digits]]'''
:: (no idea)
:: (no idea)
'''[[label_outline_color]]'''
'''[[label_outline_color]]'''
:: each label is outlined (so you can do white-on-white labels, for example).  This options sets the color of the label outline.
:: each label is outlined (so you can do white-on-white labels, for example).  This options sets the color of the label outline. Eg. <source lang="python">set label_outline_color, orange</source>
'''[[label_dihedral_digits]]'''
'''[[label_dihedral_digits]]'''
:: (no idea)
:: (no idea)
'''[[label_position]]'''
'''[[label_position]]'''
:: sets any offset from the original X,Y,Z coordinates for the label
:: sets any offset from the original X,Y,Z coordinates for the label
=Examples=
=Examples=
<source lang="python">
<source lang="python">

Revision as of 19:52, 8 June 2009

Fixes

  • Updates needed

New Page Content

New Page Overview

This is the content for the new labels page.

Overview

The Label command controls how PyMOL draws text labels for PyMOL objects. Labeling is important so there are many options for your fine tuning needs. You can change the label size, label color, positioning, font, the label outline color that masks the font and much, much more.

You can have PyMOL label atoms by properties or arbitrary strings as you want; you can even use Unicode fonts for special symbols like, , etc.

The following gallery shows some examples of how extensible the Label command is.

Object Properties

Aside from arbitrary string labels, like "This is the catalytic residue" for an atom/residue you can also use the following built-in molecular properties:

  • name, the atom name
  • resn, the residue name
  • resi, the residue number/identifier
  • chain, the chain name
  • q, charge
  • b, the occupancy/b-factor
  • segi, the segment identifier
  • type (ATOM,HETATM), the type of atom
  • formal_charge, the formal charge
  • partial_charge, the partial charge
  • numeric_type, the numeric type
  • text_type, the text type

Syntax

To use the label command follow this syntax:

# labeling syntax
label [ selection[, expression]]

where selection is some object/selection you want to label and expression is some string (or set of strings) which PyMOL is to use to label the given selection.

We have plenty of examples. See the examples below.

Settings

Here are all the label settings and their general effect. For each label setting, see the respective web page for more details.

label_angle_digits

(no idea)

label_distance_digits

(no idea)

label_shadow_mode

sets whether or not PyMOL will ray trace shadows for your label text. Eg:
set label_shadow_mode, 2

label_color

sets the color of the label text. Eg:
set label_color, magenta

label_font_id

sets the font to render your label. Eg:
set label_font_id, 12

label_size

sets the size of the text. Eg:
set label_size, -2

label_digits

(no idea)

label_outline_color

each label is outlined (so you can do white-on-white labels, for example). This options sets the color of the label outline. Eg.
set label_outline_color, orange

label_dihedral_digits

(no idea)

label_position

sets any offset from the original X,Y,Z coordinates for the label

Examples

See Also