Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help
Special pages
SBGrid Resources
SBGrid Consortium
SBGrid Data Bank
Software Webinars
PyMOL Webinar
PyMOL Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Talk:Label
(section)
Add topic
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Add topic
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====FONT==== There are 10 different scalable fonts. <source lang="python">set label_font_id, number</source> where number is 5 through 14. =====UTF8 Fonts===== [[Image:New_fonts.jpeg|thumb|New fonts in PyMol. Notice the alpha and beta characters.]] Newer versions support UTF8 fonts; use '''label_font_id''' from above to 15 or 16. The good news about the UTF8 fonts is that they support the alpha and beta characters. (See image.) Here's some example code for the image at right: <source lang="python"> # roman set label_font_id, 15 set label_shadow_mode, 3 label 5/CA, "\316\261-Helix" label 10/CA, "\316\262-Sheet" # italic set label_font_id, 16 # make bigger set label_size, 50 </source> =====Unicode Fonts===== [[Image:Font_ex.png|300px|thumb|right|Notice the Angstrom and superscript 2 characters. You can add other characters as well.]] PyMOL gives you the flexibility to use encoded unicode fonts. This allows us to insert various symbols, like the symbol used for Angstrom. Here are the steps to insert a character from the unicode character set. * Find the code for your character at [http://www.unicode.org/charts Unicode Charts]. The Angstrom character, <math>\textrm{\AA}</math> is u"\u00c5" and <math>\pm</math> is u"\u00b1". * Label the selection. For simple strings, just type the string in double quote, -- "like this" -- and append to the end of that .encode('utf-8') -- "like this".encode('utf-8'). A working example is shown here, <source lang="python"> # label residue 30 with "4.1 Ang^2 +/- 0.65 Ang^2; see the image at right label i. 30, "4.1" + u"\u00c5\u00b2 \u00b1 0.65 \u00c5\u00b2 ".encode('utf-8') </source>
Summary:
Please note that all contributions to PyMOL Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
PyMOL Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Talk:Label
(section)
Add topic