Color atoms by a scalar property
Map height, force magnitude or another stored per-atom array to color. Use Style > Atoms > Atom Colorscale. Fix a common range when comparing frames so a given color keeps the same numerical meaning.
Choose Atom index to map the active frame’s zero-based ASE order to color.
Example: compare stored Cu forces across frames
Download stored-forces.extxyz. Open it with File > Open, or run this in the folder containing the download:
v_ase gui stored-forces.extxyz
Choose force magnitude as the scalar and scope All atoms.
Choose turbo, gamma 0.72. The O probe has zero stored force and is included in this scale. Selected scope is an optional subset variation.
Fit the range over the whole trajectory, or enter explicit limits, then retain that range during playback.
Play the 14 frames and compare colors and arrows using the same scale.
Save a project to keep the property, subset, colormap and resolved limits.
Cu force colors use a locked range across the analytic probe trajectory.
Map numeric per-atom data
Open Style > Atoms > Color scale. Enable it, then select a field, map, scope, range, and contrast.
The field catalog is preloaded; scalar arrays and optional colormaps load only when needed. Built-ins include:
position:x,position:y,position:z;force:normwhen stored forces exist;numeric per-atom ASE arrays;
stored per-atom calculator results; and
finite numeric LAMMPS atom columns such as custom
c_*orf_*fields.
Multidimensional arrays expose the Euclidean norm of the flattened stored
components and individual components for widths up to nine. For a tensor in
Voigt form, apply the appropriate shear weights yourself if you need a tensor
invariant. Check custom field units against the producing code. The momenta
field converts native ASE momenta to u·Å/fs using ase.units.fs. Apply that
conversion yourself when interpreting momentum values exported by v0.5.1.
ASE units.
Do not guess model-specific names: use the field list generated for the live
trajectory.
Force magnitude uses the stored Cartesian force vector. ASE can apply constraints when a frame is serialized for the viewer. For a fixed site this can produce a zero serialized force alongside a nonzero stored magnitude. Specify which quantity you report for constrained systems.
Scope
All atoms maps every visible atom with a finite value.
Selected atoms captures the current base-atom indices once. Changing the GUI selection does not redirect the mapping. Use current selection explicitly replaces its targets; an empty target list colors no atoms. Semantic
scope:"selected"freezes explicitindices, or snapshots the current selection whenindicesis omitted. Targets persist in projects, follow known delete/duplicate/repeat provenance, and clear when document identity changes without a provenance map. Trajectory count and element changes retain the saved indices; missing indices resume when they reappear.Label choices in Apply to capture the current members as base indices. They do not dynamically switch targets when labels or elements change. Changing the target or using Use current selection preserves manually locked bounds and the chosen range mode; use a Fit button to refit explicitly. The separate Use current selection button replaces that captured subset.
A partially colored all-atom frame is not a successful application. Missing or nonfinite values must remain explicitly unavailable.
Range modes
GUI action/API mode |
Exact meaning |
|---|---|
Fit current frame / |
Resolve one finite range from the active frame, then keep it locked during playback |
Fit entire trajectory / |
Resolve one global finite range over every frame and reuse it |
Manual Minimum value/Maximum value / |
Use an explicit finite range with |
Never normalize each frame independently when comparing a trajectory. A global scan uses a bounded cached scalar buffer when possible; larger inputs remain backend-side for extrema scanning.
Colormaps and gamma
Preset maps come from the installed Matplotlib registry and include complete
0–1 preview samples. Reverse changes direction. Gamma is valid from 0.1 to
5.0; 1.0 is neutral.
Custom maps contain 2–64 unique positioned #RRGGBB stops and use
continuous interpolation or discrete bands. Their definition persists
in visual settings, projects, HTML, and exports. Disabling the colorscale
immediately restores the saved label/element appearance and stops per-frame
colorscale work.

Coordinates, property colors and property radii commit together on each source frame. Rapid scrubbing coalesces pending frame requests and reuses bounded scalar caches; cancelled work cannot overwrite a newer mapping. In interpolated video, continuous raw scalars are interpolated before mapping with the locked range.