When Molecular Labels Get in the Way: A Clearer View of Your Structure

A few labels can make a molecular model easier to understand. Too many—or labels that overlap, distract, or disappear at the wrong zoom level—can make the structure harder to read than it was without them. The solution is not always to remove information. Often, it is to control which labels appear, how they look, and where they sit.

In SAMSON, labels are nodes stored in the document. They can show a node’s name, describe a group, or display a measurement. If you save the document as a .sam or .samx file, its labels are saved too. That makes thoughtful label setup useful not only while examining a structure, but also when you return to the document or prepare it for presentation.

Example of labels in a molecular scene

Start with the smallest useful set

Before adding labels, decide what you need the viewer to notice. A label for a selected group can summarize that group; labels on residues or other descendants can provide more detail. In the context toolbar, Add label creates one label for the directly selected group. Add label to… lets you choose a node type and can include descendants—for example, residues within the current selection.

This difference matters when a broad selection contains many structural components. Adding one label to the group gives a compact description; labeling its descendants gives more local information, but may create a busier view. If you add labels in the Viewport instead, activate the Label editor first. The selection filter determines the kind of node that receives the label, so check it before placing labels: a filter set to Atoms and bonds behaves differently from one set to Residues.

Adding labels through the context toolbar

Let zoom level do some of the decluttering

Labels can change visibility progressively as you zoom. Labels for smaller nodes, such as atoms, begin to disappear as you zoom out, while labels for larger nodes, such as molecules, begin to appear. This lets the view shift from local detail toward a broader structural overview rather than showing every label at every scale.

If a particular label appears too early, too late, or at an inconvenient scale, select it and adjust its maximum and minimum display radii in the Inspector. These values govern when that label is visible. You can also show or hide labels using the Document view. Together, these controls offer two useful approaches: hide labels that are not relevant to the current task, or tune their display radii when they should appear only at certain viewing scales.

Label visibility changing as the Viewport zoom changes

Make labels readable without changing the model

Labels are initially placed at the geometric center of their nodes and remain in the Viewport plane. When a label obscures another part of the scene, move the label rather than changing the structure. Select it and edit its viewport offset in the Inspector, or set the selection filter to Labels and use a Move editor such as Displace. You can also select a label in the Document view and use a Move editor.

Moving labels is especially helpful when preparing a view in which several nearby features need to be identified. Keep in mind that labels selected in the Viewport are governed by the selection filter. Set the filter to Labels first; only visible labels can be selected there. When you are done, switch the filter back if you want to select other node types.

Moving a label with the Displace editor

Use consistent styling for easier scanning

For labels whose font has not been set individually, change the default in Preferences > Rendering > Labels. You can also adjust the number of decimal places used for angles and distances shown in measurement labels. For a specific label or selected group, use Choose font… in the Inspector. To return selected labels to the preference font, double-click Font in the Inspector.

Color can help distinguish labels, but consistency is more useful than assigning a different color to every item. Set a constant color from the context toolbar, the Visualization color controls, or the Inspector. To remove a custom color, use Reset color or clear the Text color in the Inspector. Label transparency can also be adjusted there.

A practical sequence is to add only the labels needed for the question at hand, check their behavior at both close and overview zoom levels, move any that compete for space, and then apply a consistent font or color if it improves legibility. This keeps the visual emphasis on the molecular structure while retaining useful context.

For the full labeling guide, visit the SAMSON labeling documentation.

Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.

Comments are closed.