Difference between revisions of "Label size"

From PyMOLWiki
Jump to navigation Jump to search
m
m (Added info that automatic scaling works with draw but not with ray command.)
 
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
Sets how large the labels are rendered. You can use positive numbers 2, 3, 4, etc for point sizes, or negative numbers for Angstrom-based sizes. Default is 14 points. Labels in Angstrom-size scale with the distance from the front plane, labels in point-size don't.
+
Sets how large the labels are rendered. You can use positive numbers 2, 3, 4, etc for point sizes, or negative numbers for Angstrom-based sizes. Default is 14 points. Labels in Angstrom-size scale with the distance from the front plane, labels in point-size don't. This automatic scaling works with the [[draw]] command but not with the [[ray]] command.
  
 
== Syntax ==
 
== Syntax ==
Line 7: Line 7:
 
set label_size, 10
 
set label_size, 10
  
# set the label size to 1.5 Ang.
+
# set the label size to 1.5 Ang. -- large!
set label_size, -1.5 # set label sizes to 1.5 Angstroms -- large!
+
set label_size, -1.5
 
</source>
 
</source>
  
 
[[Category:Settings|Label size]]
 
[[Category:Settings|Label size]]
 
[[Category:Labeling|Label size]]
 
[[Category:Labeling|Label size]]

Latest revision as of 16:21, 21 August 2023

Overview

Sets how large the labels are rendered. You can use positive numbers 2, 3, 4, etc for point sizes, or negative numbers for Angstrom-based sizes. Default is 14 points. Labels in Angstrom-size scale with the distance from the front plane, labels in point-size don't. This automatic scaling works with the draw command but not with the ray command.

Syntax

# set the label size to 10pt
set label_size, 10

# set the label size to 1.5 Ang. -- large!
set label_size, -1.5